Class SwaggerEndpointOptions
- Namespace
- Swashbuckle.AspNetCore.Swagger
- Assembly
- Swashbuckle.AspNetCore.Swagger.dll
public class SwaggerEndpointOptions
- Inheritance
-
SwaggerEndpointOptions
- Inherited Members
Constructors
SwaggerEndpointOptions()
public SwaggerEndpointOptions()
Properties
PreSerializeFilters
Actions that can be applied SwaggerDocument's before they're serialized to JSON. Useful for setting metadata that's derived from the current request
public List<Action<OpenApiDocument, HttpRequest>> PreSerializeFilters { get; }
Property Value
- List<Action<OpenApiDocument, HttpRequest>>
SerializeAsV2
Return Swagger JSON in the V2 format rather than V3
public bool SerializeAsV2 { get; set; }