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

Move schemas into ToSchema for schemas #1112

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

juhaku
Copy link
Owner

@juhaku juhaku commented Oct 10, 2024

This commit moves the schemas into ToSchema trait for schemas. SchemaReferences will still exist for types that does not implement ToSchema and is used internally by utoipa. This enables users to manually implement ToSchema without extra hassle with references if there is no need to.

Fixes #1093

@juhaku juhaku force-pushed the move-schema-references-toschema branch from 2f8565f to f15e221 Compare October 10, 2024 15:01
This commit moves the `schemas` into `ToSchema` trait for schemas.
`SchemaReferences` will still exist for types that does not implement
`ToSchema` and is used internally by `utoipa`. This enables users to
manually implement `ToSchema` without extra hassle with references if
there is no nee to.

Fixes #1093
@juhaku juhaku force-pushed the move-schema-references-toschema branch from f15e221 to e5ba2a3 Compare October 10, 2024 15:02
@juhaku juhaku merged commit 18e96c9 into master Oct 10, 2024
22 checks passed
@juhaku juhaku deleted the move-schema-references-toschema branch October 10, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

[5.0.0-rc.0] Errors when implementing ToSchema manually
1 participant