Skip to content

Properties order lost while converting from v2 to v3 #997 - #1093

Merged
gracekarina merged 1 commit into
swagger-api:masterfrom
Talend:issue-997
May 5, 2019
Merged

gracekarina merged 1 commit into
swagger-api:masterfrom
Talend:issue-997

Conversation

@fmoussallam

Copy link
Copy Markdown
Contributor

What is the problem: In our unit tests, properties need to appear in a specific order. We are having issues when these tests are run with different JDKs because HashMap ordering is not guaranteed.

What is the solution: Replace HashMap with LinkedHashMap in SwaggerConverter.java.

Please note that a unit test for this PR would be subject to the same JDK issue mentioned here, so no unit test is provided.

@gracekarina
gracekarina merged commit 0cb2c9b into swagger-api:master May 5, 2019
@gracekarina

Copy link
Copy Markdown
Contributor

thanks!

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.

2 participants