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

Use OpenApiRouter::defualt for empty OpenApi #1133

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

juhaku
Copy link
Owner

@juhaku juhaku commented Oct 15, 2024

This commit changes the behavior of OpenApiRouter::new and OpenApiRouter::default. From now on OpenApiRouter::default will create a new instance with empty OpenApi and OpenApiRouter::new will create an instance with OpenApi similar to derived via #[derive(OpenApi)].

Fixes #1126

@juhaku juhaku changed the title Use OpenApiRouter;:defualt for empty OpenApi Use OpenApiRouter::defualt for empty OpenApi Oct 15, 2024
@juhaku juhaku force-pushed the chore-utoipa-axum-defaults branch 2 times, most recently from daaa5b5 to f9afa44 Compare October 15, 2024 09:23
This commit changes the behavior of `OpenApiRouter::new` and
`OpenApiRouter::default`. From now on `OpenApiRouter::default` will
create a new instance with empty `OpenApi` and `OpenApiRouter::new` will
create an instance with `OpenApi` similar to derived via
`#[derive(OpenApi)]`.

Fixes #1126
@juhaku juhaku force-pushed the chore-utoipa-axum-defaults branch from f9afa44 to a4a5e2c Compare October 15, 2024 09:24
@juhaku juhaku merged commit aff8b07 into master Oct 15, 2024
22 checks passed
@juhaku juhaku deleted the chore-utoipa-axum-defaults branch October 15, 2024 09:45
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.

Incomplete spec dump via to_pretty_json with auto registered schemas
1 participant