instrumenta / openapi2jsonschema

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

-o requires prefix for some reason #43

Open nirroz93 opened 3 years ago

nirroz93 commented 3 years ago

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 error occured processing validatingwebhookconfigurationlist: URLError: <urlopen error [Errno 2] No such file or directory: '/tmp/tmp/v1.19.2-standalone-strict/_definitions.json'>
jcmcken commented 3 years ago

I see this issue whenever --stand-alone and --expanded are used together, regardless if -o is used.