fix: issue#326 - Updated $$objectSchema$$.java#427
fix: issue#326 - Updated $$objectSchema$$.java#427Manjeetjay wants to merge 2 commits intoasyncapi:masterfrom Manjeetjay:Issue#326
Conversation
There was a problem hiding this comment.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
|
This pull request has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation. There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
| {%- if prop.minimum() %}@Min({{prop.minimum()}}){% endif %}{% if prop.exclusiveMinimum() %}@Min({{prop.exclusiveMinimum() + 1}}){% endif %} | ||
| {%- if prop.maximum() %}@Max({{prop.maximum()}}){% endif %}{% if prop.exclusiveMaximum() %}@Max({{prop.exclusiveMaximum() + 1}}){% endif %} | ||
| {%- if prop.type() == 'number' and (prop.format() == 'float' or prop.format() == 'double') %} | ||
| {%- if prop.minimum() %}@DecimalMin({{prop.minimum()}}, inclusive = true){% endif %}{%- if prop.exclusiveMinimum() %}@DecimalMin({{prop.exclusiveMinimum() + 1}}, inclusive = false){% endif %} |

Refactored the code for applying @DecimalMin and @DecimalMax annotations to ensure it follows a consistent and streamlined structure similar to the @min and @max annotations.
Related issue(s)
Resolves #326