vaclavnovotny / NSwag.Examples

NSwag processor to programmatically define strongly-typed examples for response and request parameters.
MIT License
13 stars 11 forks source link

Feature request: Ability to specify one or more examples specific to each API endpoint #8

Closed icnocop closed 1 year ago

icnocop commented 2 years ago

Hi.

Thank you for NSwag.Examples.

My API endpoints are explicitly decorated with [SwaggerRequestExample] and [SwaggerResponseExample] using https://github.com/mattfrear/Swashbuckle.AspNetCore.Filters.

The ability to specify one or more examples specific to each endpoint is the ideal approach to generate the desired results in the OpenAPI spec and swagger UI.

Thank you.

vaclavnovotny commented 1 year ago

Hi, Thanks for the request, I will look into it during the week.

icnocop commented 1 year ago

Hi.

I opened PR #9 for your feedback.

Thank you.

vaclavnovotny commented 1 year ago

Requested feature added in 1.0.9 release. I have closed the PR #9.