You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a IOperationProcessor which adds different types of exceptions to the schema, but since updating to netcore80 it is generating all base class properties in the result swagger.json file.
I have a
IOperationProcessor
which adds different types of exceptions to the schema, but since updating to netcore80 it is generating all base class properties in the result swagger.json file.As per the documentation JsonSchemaGenerator
System.Exception
Only the properties "InnerException", "Message", "Source", "StackTrace" are generated.
My Exception classes are very simple e.g.
This is the implementation of the
CustomExceptionsGenerator
Note: I have also tried using the Attributes - same result
AddOpenApiDocument configuration is
This is an extract from the result specification json
and the schema for the ForbiddenAccessException is:
The text was updated successfully, but these errors were encountered: