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

Fix the problem that the content of extensions cannot be parsed #1540

Merged

Conversation

Bulls1986
Copy link
Contributor

Hello,bro.It seems that the content of extensions under the node is not parsed here,resulting in the extensions content of all nodes not being parsed,so here is added to take the extensions node and parse the content under the node.

@Bulls1986
Copy link
Contributor Author

This problem will appear in Json format.

@gracekarina
Copy link
Contributor

Hi, thanks for the PR, may you please commit the specific change you are making, and a specific test to corroborate the fix, thanks.

@Bulls1986
Copy link
Contributor Author

The new logic is that after the original extensions are parsed, if the content is not parsed, try to parse it again in Json format. I have added the unit test.

@gracekarina gracekarina merged commit 575fa82 into swagger-api:master Apr 23, 2021
@gracekarina
Copy link
Contributor

thanks @Bulls1986

@Msimplehub
Copy link

How to fix it in 2.0.0-rc1.
and the dependency is :

io.swagger
swagger-parser
2.0.0-rc1

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

Successfully merging this pull request may close these issues.

None yet

3 participants