Skip to content

Conversation

@hhat42
Copy link

@hhat42 hhat42 commented Jul 5, 2020

This PR adds the feature from #3553 to the 1.5 branch. It allows to override enum values with the Jackson-specific annotations @JsonProperty or @jsonvalue.

Since the 1.5 branch uses source target setting for Java 7, the stream API and Optional are not available. The code from the master branch was adapted to work without these. Except from that, the changes from the #3553 PR have all been ported into this PR, including the corresponding tests.

Closes #3616

@frantuma frantuma merged commit 6e14ecb into swagger-api:1.5 Jul 10, 2020
@frantuma
Copy link
Contributor

Thanks!

@hhat42 hhat42 deleted the override-enum-1.5 branch July 10, 2020 18:04
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