Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Provide the capability to use inline schemas for object types #2426

Open
jamesmcroft opened this issue May 26, 2022 · 2 comments
Open

Comments

@jamesmcroft
Copy link

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.

Copy link
Contributor

This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made.

@github-actions github-actions bot added the stale Stale issues or pull requests label Apr 23, 2024
@martincostello
Copy link
Collaborator

#2533

@martincostello martincostello removed the stale Stale issues or pull requests label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants