1

It is not possible to create subgroups in the Swagger documentation. Further, there is no possibility to sort the models (A, B).

For the operations, it is possible to work around it using tags. Is there a similar solution for the Data Definitions?

(We are using Swashbuckle to create an HTML description.)

BaluJr.
  • 1,010
  • 2
  • 11
  • 25
  • 1
    I've had a lot of luck with using NSwag (built on top of Swashbuckle) for manipulating the API spec the way you are wanting. Specifically using the DocumentProcessor (which makes the entire spec document into a manageable object, section by section). With the DocumentProcessor you could probably pull out each schema definition into an array, sort them, then insert them back in to the spec. This of course would happen during Startup (.cs) so that it renders that way on your Swagger page. – EspressoBeans Jul 17 '19 at 16:06

0 Answers0