Skip to content

Swagger/OpenAPI support #183

Open
Open
@nickrandolph

Description

@nickrandolph

Has anyone used Swagger (eg Swashbuckle) to document an API that exposes a CloudEvent (eg adding Swagger to this sample)?

I'm seeing a bunch of clr types being added to the swagger.json (Type, Assembly etc). This seems to be caused by the CloudEventAttributeType exposing the property ClrType which returns a Type.

I was wondering whether this is a known issue, and whether there's an existing workaround?

I was considering customizing the swagger by providing an override for Type eg https://github.com/cloudevents/sdk-csharp/tree/master/samples/CloudNative.CloudEvents.AspNetCoreSample

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions