instrumenta / openapi2jsonschema

Convert OpenAPI definitions into JSON schemas for all types in the API
Other
226 stars 87 forks source link

Scope files by version and group #11

Closed johanneswuerbach closed 5 years ago

johanneswuerbach commented 6 years ago

Append the version of a kind instead of overriding the same file multiple times.

Required for https://github.com/garethr/kubeval/issues/57

garethr commented 5 years ago

Finally getting some time to come back to maintaining these tools. I've just applied this patch with a few changes, in particular putting it behind a flag and restricting to the Kubernetes code path. Once I've generated the relevant schemas for all the versions, and reworked some of the publishing, I'll be updating kubeval to be able to use these. Thanks again.