Comparing version 0.0.12 to 0.0.13
{ | ||
"name": "crdtoapi", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "CustomResourceDefinitions to OpensAPI", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/yaacov/crdtoapi", |
# OpenAPI to Typescript Interfaces | ||
crdtotype is a tool that creates Typespcript interfaces from [OpenAPI](https://www.openapis.org/) definition files. | ||
crdtotypes is a tool that creates Typespcript interfaces from [OpenAPI](https://www.openapis.org/) definition files. | ||
@@ -14,7 +14,7 @@ ## Usage | ||
# excutable path, e.g. $(npm bin --location=global)/crdtoapi | ||
crdtotype --help | ||
crdtotypes --help | ||
# create typescript interface files in ./tmp dir | ||
mkdir tmp | ||
crdtotype -i openapi.yaml -o ./tmp --out ./tmp | ||
crdtotypes -i openapi.yaml -o ./tmp --out ./tmp | ||
``` | ||
@@ -21,0 +21,0 @@ |
@@ -37,3 +37,3 @@ #!/usr/bin/env node | ||
program | ||
.version('0.0.12') | ||
.version('0.0.13') | ||
.description('Extract Typescropt interfaces from OpenAPI file') | ||
@@ -40,0 +40,0 @@ .option('-i, --in <file>', 'OpenAPI file - required') |
@@ -31,3 +31,3 @@ #!/usr/bin/env node | ||
export const {{kind}}ModelGroupVersionKind ={ | ||
export const {{kind}}ModelGroupVersionKind = { | ||
version: '{{apiVersion}}', | ||
@@ -45,3 +45,3 @@ kind: '{{kind}}', | ||
program | ||
.version('0.0.12') | ||
.version('0.0.13') | ||
.description('Convert CRDs to Group Version Kind Typescript constants') | ||
@@ -48,0 +48,0 @@ .option('-i, --in <file>', 'Input directory path - required') |
@@ -13,3 +13,3 @@ #!/usr/bin/env node | ||
program | ||
.version('0.0.12') | ||
.version('0.0.13') | ||
.description('Convert CRDs to OpenAPI file') | ||
@@ -16,0 +16,0 @@ .option('-i, --in <dir>', 'Input directory path - required') |
@@ -69,3 +69,3 @@ /** | ||
* Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | ||
* @type {{ [key: string]: string; }} | ||
* @type {{ [key: string]: string; }} | ||
* @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta | ||
@@ -116,3 +116,3 @@ */ | ||
* Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | ||
* @type {{ [key: string]: string; }} | ||
* @type {{ [key: string]: string; }} | ||
* @memberof IoK8sApimachineryPkgApisMetaV1ObjectMeta | ||
@@ -119,0 +119,0 @@ */ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
332209
79
5347