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

[Question]: I have a integer array. I want to specify maximum and minimum for integer stored in the array. #3120

Open
c6-dark opened this issue Oct 28, 2024 · 4 comments
Labels
question stale Stale issues or pull requests

Comments

@c6-dark
Copy link

c6-dark commented Oct 28, 2024

What are you wanting to achieve?

I have an integer public int[] array {get; set;}.
I have used Maximum and Minimum length to specify a range for the array. I want to specify the same for the integer stored in the array

What code or approach do you have so far?

[Minimum(0), Maximum(100)]
public int[] array {get; set;}

Additional context

No response

@jgarciadelanoceda
Copy link
Contributor

jgarciadelanoceda commented Nov 15, 2024

Studying

@jgarciadelanoceda
Copy link
Contributor

You can use this library if you use FluentValidation in your project. https://github.com/micro-elements/MicroElements.Swashbuckle.FluentValidation. RuleForEach works as expected

@c6-dark
Copy link
Author

c6-dark commented Dec 10, 2024

I am using Swashbuckle.AspNetCore.Annotations.

Copy link
Contributor

github-actions bot commented Feb 9, 2025

This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made.

@github-actions github-actions bot added the stale Stale issues or pull requests label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question stale Stale issues or pull requests
Projects
None yet
Development

No branches or pull requests

2 participants