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

Resolve JsonSchema refs #4620

Open
brampurnot opened this issue Feb 22, 2024 · 0 comments
Open

Resolve JsonSchema refs #4620

brampurnot opened this issue Feb 22, 2024 · 0 comments

Comments

@brampurnot
Copy link

Hi all,

I'm trying to get the Json Schema from the response which is possible by first fetching the schema and then calling the getJsonSchema() function like this:

Schema propsSchema = openAPI.getComponents().getSchemas().get("some-ref");
jsonSchema.getJsonSchema();

This works fine but the refs are not resolved. I did use the swagger-parser to resolve them first which is working fine. However it doesn't seem to be taken into account when generating the Json Schema. Anyone came across this?

Bram

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