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

Annotate properties in request models #18

Closed
spaelling opened this issue Mar 20, 2019 · 3 comments
Closed

Annotate properties in request models #18

spaelling opened this issue Mar 20, 2019 · 3 comments
Labels
open api Open API and Swagger UI related issue question

Comments

@spaelling
Copy link

Is it possible to annotate properties in the request models to ex. describe if the property is mandatory or not. I think this is already in the OpenAPI spec.

@justinyoo
Copy link
Contributor

@spaelling In general, yes, if you use JsonProperty(...) from Json.NET. Is that what you're looking for, or something else? If you want to explicitly show them, I don't think it's implemented yet, as this is optional from the spec. However, it's in our backlog #4 .

@justinyoo justinyoo added question open api Open API and Swagger UI related issue labels Mar 21, 2019
@spaelling
Copy link
Author

Thanks, I will try it out and let you know if that was my meaning. It looks promising.

@spaelling
Copy link
Author

That did not quite do what I was hoping for. We will be awaiting #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open api Open API and Swagger UI related issue question
Projects
None yet
Development

No branches or pull requests

2 participants