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

bug(oas3schema): some required objects are not being inserted into the schemas #35

Open
fdymylja opened this issue Jun 25, 2021 · 0 comments

Comments

@fdymylja
Copy link
Contributor

In oas3schema, some objects are not being added correctly to the schemas.

To reproduce:

make testapp
curl localhost:8080/spec

passing the input into parse the input into https://editor.swagger.io/ it will

returns the following errors:

Semantic error at paths./tmos.core.rbac.v1alpha1/rolebindings.get.responses.200.content.application/json.schema.$ref
$refs must reference a valid location in the document
Jump to line 158
Resolver error at paths./tmos.runtime.v1alpha1/moduledescriptors.get.responses.200.content.application/json.schema.properties.modules.items.properties.stateTransitions.items.properties.protoDependencies.items.properties.messageType.items.properties.extensionRange.items.$ref
Could not resolve reference: #/components/schemas/google.protobuf.ExtensionRange
Jump to line 198
Resolver error at paths./tmos.runtime.v1alpha1/moduledescriptors.get.responses.200.content.application/json.schema.properties.modules.items.properties.stateTransitions.items.properties.protoDependencies.items.properties.messageType.items.properties.reservedRange.items.$ref
Could not resolve reference: #/components/schemas/google.protobuf.ReservedRange
Jump to line 198
@fdymylja fdymylja changed the title bug(oas3schema): some required objects are not being emitted into the schema bug(oas3schema): some required objects are not being inserted into the schemas Jun 25, 2021
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