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

Add 'title' attribute during deserialization of non-primitive properties #1599

Merged
merged 1 commit into from
Mar 5, 2016
Merged

Add 'title' attribute during deserialization of non-primitive properties #1599

merged 1 commit into from
Mar 5, 2016

Conversation

quilicicf
Copy link
Contributor

Scope

During deserialization of non-primitive properties, the attribute title was lost. Now it is retrieved in all cases.

See JsonDeserializationTest#testObjectProperty for a live example.

BONUS

  • remove unused xml element in PropertyDeserializer#propertyFromNode
  • invert conditions in assertEquals in JsonDeserializationTest#testObjectProperty. The expected & actual values were in the wrong order resulting in confusing Junit traces (expected: <0> but was: <3> instead of expected: <3> but was: <0>).

@webron
Copy link
Contributor

webron commented Mar 1, 2016

@frantuma - can you review this please?

@frantuma
Copy link
Member

frantuma commented Mar 2, 2016

@webron looks fine; let me know it's ok I merge

@frantuma frantuma added this to the v1.5.8 milestone Mar 5, 2016
frantuma added a commit that referenced this pull request Mar 5, 2016
…eserialization

Add 'title' attribute during deserialization of non-primitive properties
@frantuma frantuma merged commit aa6a4e3 into swagger-api:master Mar 5, 2016
@fehguy fehguy modified the milestones: v1.5.8, 1.5.10 Dec 25, 2016
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

4 participants