Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool generates schemas with invalid references #47

Open
jcmcken opened this issue Feb 13, 2021 · 0 comments
Open

Tool generates schemas with invalid references #47

jcmcken opened this issue Feb 13, 2021 · 0 comments

Comments

@jcmcken
Copy link

jcmcken commented Feb 13, 2021

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 --expanded local/path/to/schema.json

It generates schema with references like this:

{
  ...snip...
  "$ref": "istio.networking.v1beta1.TLSRoute.json"
  ...snip...
}

And yet, the tool does not actually generate this file istio.networking.v1beta1.TLSRoute.json. So loading of the schema using kubeval fails outright.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant