instrumenta / instrumenta/openapi2jsonschema

Tool generates schemas with invalid references

Open
#47 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
248
Forks
95
PR merge metrics
No merged PRs in 30d

Description

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:

```json
{
...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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.