Skip to content

sdk: utoipa 6, with a description on every response - #31

Merged
rinjanianalytics merged 2 commits into
mainfrom
deps/utoipa-6
Oct 23, 2026
Merged

rinjanianalytics merged 2 commits into
mainfrom
deps/utoipa-6

Conversation

@rinjanianalytics

Copy link
Copy Markdown
Owner

Replaces #17, which failed because openapi.json no longer matched the generated document.

utoipa 6 leaves out a response's description when it is empty. OpenAPI requires a description on every response, so dropping it would make the document invalid for strict validators and client generators. Instead, the twelve 200 responses that had no description now have a short one, in the style the others already use ("The configuration", "The saved filters").

  • openapi.json changes only by these twelve descriptions.
  • web/src/lib/api-schema.ts is regenerated: it gains twelve @description comments, and no type changes.
  • The long responses(...) lines are wrapped like the ones already in the file.

cargo fmt --check, clippy with -D warnings, cargo test --workspace --all-features and pnpm run api with no diff pass locally.

utoipa 6 leaves out an empty response description. OpenAPI requires one,
so the twelve 200 responses without a description now have one.
openapi.json and the console's types are regenerated: only these
descriptions change.

Replaces #17.
@rinjanianalytics
rinjanianalytics merged commit 6e2a812 into main Oct 23, 2026
2 checks passed
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 this pull request may close these issues.

1 participant