-
Notifications
You must be signed in to change notification settings - Fork 81
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
@Schema maximum and minimum are Strings? #178
Comments
Note that the |
Just a quick thought: could Hibernate's |
Assigning to myself. :) |
OK so the reason that these properties are String instead of something more (seemingly) sensible (e.g. double) is that there is no default value that we could use to clearly indicate that the property was not included. In other words, if we made the property a The way all these annotation properties work is that every one of them has a default value. When the annotation processor reads them, if the default value is found (for any given annotation property) then the processor is supposed to not include it in the final OAI document being generated. For For this particular property, switching to We could do something like So for now I think we should update the javadoc to explain why the type is String and then close this issue. |
…lrye-smallrye-parent-12 Bump smallrye-parent from 10 to 12
For example, the
@Schema
annotation has this property:https://github.com/eclipse/microprofile-open-api/blob/master/api/src/main/java/org/eclipse/microprofile/openapi/annotations/media/Schema.java#L113-L119
The data model defines these properties as
BigDecimal
. Can I assume that this is done because java annotations don't supportBigDecimal
as a type for a property and that no other type would be sufficient?The text was updated successfully, but these errors were encountered: