Skip to content

📐 Preserve order in maps accross the OAS model #2968

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

Merged
merged 1 commit into from
Oct 8, 2018
Merged

📐 Preserve order in maps accross the OAS model #2968

merged 1 commit into from
Oct 8, 2018

Conversation

quilicicf
Copy link
Contributor

Affects: 2.0.5

Issue

When adding elements in a map in the OAS POJOs then serializing, the order in which the elements were added is not preserved.

Although JSON maps are supposed not to enforce an order on their elements, in practice this is implemented in all serializers and used in lots of products.

We are converting API definitions from different languages and need the order to be preserved.

We already contributed a similar fix in version 2 of OAS.

@frantuma frantuma merged commit 3295a10 into swagger-api:master Oct 8, 2018
@frantuma
Copy link
Member

frantuma commented Oct 8, 2018

Thanks!

@quilicicf
Copy link
Contributor Author

You're welcome :-)

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.

3 participants