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

Refs #1107, #1318, #1118 - property example serialization #1681

Merged
merged 1 commit into from
Mar 5, 2016
Merged

Refs #1107, #1318, #1118 - property example serialization #1681

merged 1 commit into from
Mar 5, 2016

Conversation

frantuma
Copy link
Member

Refs #1107, #1318, #1118, kongchen/swagger-maven-plugin#233

initially triggered by #1107 analysis, solves possibly regression related to #1640, causing property field "example" not to be serialized to json.

This fix doesn't solve however neither #1107 (swagger-ui related, but probably solved by updating core/models) nor #1118 and it doesn't address similar discussion in kongchen/swagger-maven-plugin#233.

Either part of this PR, or of further work on #1118, the following steps could be taken to cover the whole "area".

1 - Resolving from ApiModelProperty annotation.

similarly to discussion in kongchen/swagger-maven-plugin#233, code could be enhanced to parse example value according to format and property type.

2 - Array type deserialization in PropertyDeserialization.

Code could be enhanced by deserializing additional properties (which should be part of swagger schema if not mistaken) also for array types, e.g. "example".

@webron please let me know what you think

@frantuma
Copy link
Member Author

frantuma commented Mar 5, 2016

merged to fix #1640 regression, rest of discussion moved to #1699.

@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
Refs #1107, #1318, #1118 - property example serialization
@frantuma frantuma merged commit b0bdcc4 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

2 participants