openapi2jsonschema
openapi2jsonschema copied to clipboard
Convert OpenAPI definitions into JSON schemas for all types in the API
Closes #25 and #20
When running against https://raw.githubusercontent.com/docusign/OpenAPI-Specifications/master/esignature.rest.swagger-v2.1.json (Note this was as of today at this time, I've attached a file which is a copy of the state of this file as of today)...
I would like to be able to validate manifests targeting our local k8s cluster. There are invariably CRDs in these manifests. I'm fetching the complete openapi spec from the cluster...
E.g. if you parse the Kubernetes swagger.json (~5.1MB of JSON as of this issue), even with a pretty beefy machine, you eventually run out of memory.
This will cause `openapi2jsonschema to skip definitions that have fewer than 3 components in the name (like `v1.APIGroup`), rather than crashing with an IndexError. Closes #57
Faced with a definition like this: ``` "v1.APIGroup": { "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", "type": "object", "required": [ "name", "versions"...
CLI throws when provided with a file path instead of a URI on windows due to slash direction differences
If nullable attribute of a field in OpenAPI spec is set, add 'null' to the list of types in JSON schema (and turn type into list if it's a primitive...