Immediate.Apis
Swashbuckle support
In order for Swagger to be able to work, the generated JSON schema is required to have unique schemaId
's. To achieve this, Swashbuckle uses class names as simple schemaId
's. When using Immediate.Handlers
classes with a controller action inside, you might end up with Swashbuckle stating an error similar to this:
This error indicates Swashbuckle is trying to use two classes named Command
from two (or more) different Handlers in different namespaces.
To fix this, the following options must be defined in your SwaggerGen configuration: