Skip to content

No Request example with SerializeAsV2 #471

@mattfrear

Description

@mattfrear

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions