Comparing version 0.0.18 to 0.0.19
{ | ||
"name": "crdtoapi", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "CustomResourceDefinitions to OpensAPI", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/yaacov/crdtoapi", |
@@ -360,9 +360,7 @@ #!/usr/bin/env node | ||
field.type = '{}'; | ||
} | ||
else if ('type' in field.additionalProperties) { | ||
} else if ('type' in field.additionalProperties) { | ||
field.originalType = field.type; | ||
field.type = `{[key: string]: ${field.additionalProperties.type}}`; | ||
} | ||
} | ||
else if (isObjectUndefined) { | ||
} else if (isObjectUndefined) { | ||
field.originalType = 'not defined'; | ||
@@ -369,0 +367,0 @@ field.type = options.fallbackType; |
@@ -88,5 +88,5 @@ #!/usr/bin/env node | ||
yaml.spec.versions.forEach((version) => { | ||
const name = !options.noApiVersionPrefix ? | ||
`${version.name}${yaml.spec.names.kind}` : | ||
`${yaml.spec.names.kind}`; | ||
const name = !options.noApiVersionPrefix | ||
? `${version.name}${yaml.spec.names.kind}` | ||
: `${yaml.spec.names.kind}`; | ||
@@ -93,0 +93,0 @@ schemas[name] = version.schema.openAPIV3Schema; |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
220637
30
1798
5