-
Notifications
You must be signed in to change notification settings - Fork 279
Closed
Labels
Milestone
Description
Swagger V2 supports examples on the request under /paths/[path]/[method]/parameters/[index]/schema/example
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schemaExample
However, when rendering using SerializeAsV2, request examples are not output, as per the comments in https://github.com/microsoft/OpenAPI.NET/blob/master/src/Microsoft.OpenApi/Models/OpenApiExample.cs#L106
I think this is incorrect, and an example should be output when using SerializeAsV2.
Related issue: mattfrear/Swashbuckle.AspNetCore.Filters#115