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

Support Required Attribute #40

Open
sandromastronardi opened this issue Apr 17, 2020 · 0 comments
Open

Support Required Attribute #40

sandromastronardi opened this issue Apr 17, 2020 · 0 comments

Comments

@sandromastronardi
Copy link

Items are optional by default if they are query String parameters or when there is a question mark (?) in the URL parameter... But When you use custom binding to add your model in the method it appears as a body parameter that is optional, but of course, this is required (in many cases I presume) so it would be great if the Required attribute could be read here to make a parameter required... But the same goes for query parameters I guess.

Of course, it also needs to be used here too:

So that it can be rendered as required (not optional)

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

No branches or pull requests

1 participant