Home > Net >  Swashbuckle use format identifier via XML comment in .NET application
Swashbuckle use format identifier via XML comment in .NET application

Time:01-30

I'm trying to get the format identifier printed on the Swagger UI which is stated on their homepage. In the auto-generated json file it should look like in this example:
format property example

The way of how I'd like to achieve that is via xml comments in my view model class. This works well for tags like example, summary etc., but there is no tag like format. It would be important for me to state that the string we are awaiting here in the API must be in a certain format.

A similar question has been asked enter image description here

  • Related