openapi2jsonschema icon indicating copy to clipboard operation
openapi2jsonschema copied to clipboard

Convert OpenAPI definitions into JSON schemas for all types in the API

Results 44 openapi2jsonschema issues
Sort by recently updated
recently updated
newest added

I was running openapi2yaml on MacOS, and it generates files such as "query.json" for a component "Query" entity. But then it emits a reference form like `"$ref": "Query.json"` which causes...

https://github.com/instrumenta/openapi2jsonschema/blob/d697cbff8a25f520e125e3a5f79cb4e9b972e8ce/openapi2jsonschema/command.py#L99 will cause KeyError when there is no "properties" in some schema (CRDs and some new built-in types in OSS k8s). For examples: ``` "io.gke.nodemanagement.v1alpha1.UpdateInfo": { "type": "object", "x-kubernetes-group-version-kind": [...

No feedback provided to #29 for several months.

Add support for adding extra headers with '-H' or '--header'. The flag can be specified multiple times to add multiple headers

If I run the tool against Istio OpenAPI schemas, it generates a schema successfully, but the schema contains invalid references. E.g. I run it like this: ``` openapi2jsonschema --kubernetes --strict...

Works fine without -o ```openapi2jsonschema --expanded --kubernetes --stand-alone --strict "https://raw.githubusercontent.com/kubernetes/kubernetes/v1.19.2/api/openapi-spec/swagger.json" ``` but with -o ```openapi2jsonschema --expanded --kubernetes --stand-alone --strict "https://raw.githubusercontent.com/kubernetes/kubernetes/v1.19.2/api/openapi-spec/swagger.json" -o /tmp/v1.19.2-standalone-strict``` has many errors with the format ``` An...

Sometimes one wants to pull out a file for one specific JSON schema (and its dependencies); this PR adds the capability to do that. Allow the user to choose a...

without this changes when components use camelcase `MyComponent` this result into - the generated schema will be `mycomponent.json` - the reference to this component from the other schema will be...

Similar issue was reported [here](https://github.com/instrumenta/kubernetes-json-schema/issues/25) but this might be a better home for it, not sure. In [this code](https://github.com/instrumenta/openapi2jsonschema/blob/master/openapi2jsonschema/util.py#L69) the tool conflates an optional field (i.e. a field that does...