Skip to content

Conversation

@Manjeetjay
Copy link

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

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.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Manjeetjay Manjeetjay closed this Jan 9, 2025
@Manjeetjay Manjeetjay changed the title fix: Issue#326 - Updated $$objectSchema$$.java fix: issue#326 - Updated $$objectSchema$$.java Jan 9, 2025
@Manjeetjay Manjeetjay reopened this Jan 9, 2025
@github-actions
Copy link

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 ❤️

@github-actions github-actions bot added the stale label May 10, 2025
@github-actions github-actions bot removed the stale label May 15, 2025
{%- 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 %}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to add +1 (also below):
image

@Manjeetjay Manjeetjay closed this by deleting the head repository Jul 14, 2025
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.

Support decimal min and max

2 participants