0

I am generating Swagger in a .Net Core web api and I would like to show in the swagger UI which properties in a post request body are required?

I have already tried using Data Annotations to mark which ones are required.

thanks in advance.

David23g
  • 443
  • 1
  • 4
  • 6
  • 1
    Hi. Can you show what you have done so far? – Bosco Jun 25 '19 at 05:49
  • Possible duplicate of [How to specify if a field is optional or required in swagger?](https://stackoverflow.com/questions/40113049/how-to-specify-if-a-field-is-optional-or-required-in-swagger) – Robert Perry Jun 25 '19 at 08:22

0 Answers0