Skip to content

Tool generates schemas with invalid references #47

Description

@jcmcken

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions