Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crdtoapi

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crdtoapi - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

2

package.json
{
"name": "crdtoapi",
"version": "0.0.17",
"version": "0.0.18",
"description": "CustomResourceDefinitions to OpensAPI",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/yaacov/crdtoapi",

@@ -360,7 +360,9 @@ #!/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';

@@ -367,0 +369,0 @@ field.type = options.fallbackType;

@@ -26,2 +26,3 @@ #!/usr/bin/env node

.option('--apiVersion <text>', 'Module API version')
.option('--noApiVersionPrefix', 'Do not prefix types with API version')
.option('-j, --json', 'output as json')

@@ -88,3 +89,5 @@ .parse(process.argv);

yaml.spec.versions.forEach((version) => {
const name = `${version.name}${yaml.spec.names.kind}`;
const name = !options.noApiVersionPrefix ?
`${version.name}${yaml.spec.names.kind}` :
`${yaml.spec.names.kind}`;

@@ -91,0 +94,0 @@ schemas[name] = version.schema.openAPIV3Schema;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc