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
Simple types are by default serialized inline in the Swagger JSON files output by the SchemaGenerator class.
After posting on StackOverflow to see if there was a configuration option available to enable object inline schemas, and reading through the documentation for Swashbuckle, I came up short.
A new config option in the generator options to UseInlineDefinitions would allow this small change to be a part of the wider Swashbuckle API layer than having to create a custom SchemaGenerator type to get around this.
This feature would enhance the capabilities of importing the generated Swagger JSON into Microsoft's Power Automate, for example, which has a limit on the number of reference types it will accept for a single connector.
The text was updated successfully, but these errors were encountered:
Simple types are by default serialized inline in the Swagger JSON files output by the
SchemaGenerator
class.After posting on StackOverflow to see if there was a configuration option available to enable object inline schemas, and reading through the documentation for Swashbuckle, I came up short.
A new config option in the generator options to
UseInlineDefinitions
would allow this small change to be a part of the wider Swashbuckle API layer than having to create a customSchemaGenerator
type to get around this.This feature would enhance the capabilities of importing the generated Swagger JSON into Microsoft's Power Automate, for example, which has a limit on the number of reference types it will accept for a single connector.
The text was updated successfully, but these errors were encountered: