-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Support custom deserialization and primitive strings #481
Comments
And yes I realize I can use a model converter; my point here is that I shouldn't have to. |
Hi, I'm happy to merge any commonly-used formatters into the core. There are a lot of combinations so we haven't covered them all. If you'd like to join in and contribute, it'd be appreciated. |
A validating regex format parameter would be a good addition for string query parameters. Then you could describe the query parameter: DateRange in string format [show format here] |
Hi, you should be able to use the fix in #588 to address the same goal. |
I have a DateRanges object that, while having a "start" and "end" member, is deserialized as a primitive array, e.g.
['20130210-20130315','20130520-20130524']
rather thansince I use
@JsonValue
in theSet<DateRange>
getter. (AndDateRange
has it's start and end elements ignored with@JsonIgnore
.)That said, my Json object already does this properly (and I have custom deserializer for each in the ObjectMapper), but I don't believe I have a way of telling Swagger to use my parser. The model it shows in the UI is totally off.
The text was updated successfully, but these errors were encountered: