Skip to content

Fix OpenAPI 3.1 spec validation errors#31250

Closed
andig wants to merge 1 commit into
masterfrom
fix/openapi-3.1-errors
Closed

Fix OpenAPI 3.1 spec validation errors#31250
andig wants to merge 1 commit into
masterfrom
fix/openapi-3.1-errors

Conversation

@andig

@andig andig commented Jun 26, 2026

Copy link
Copy Markdown
Member

Fixes 14 spec validation errors flagged by vacuum lint (quality score 10→69; remaining items are warnings/infos only).

Changes in server/openapi.yaml:

  • Quote 200 response keys (status codes must be string keys)
  • Replace nullable: true + type: X with type: ["X", "null"] (×4) — nullable is removed in OpenAPI 3.1
  • Use examples array instead of singular example on LogLevel and Phases — 3.1 schemas follow JSON Schema 2020-12; the singular example caused enum mis-validation

server/mcp/openapi.json regenerated via go generate ./server/.

🤖 Generated with Claude Code

Quote 200 response keys, replace nullable with type arrays, and use
examples instead of example for enum schemas. Regenerate mcp/openapi.json.
@andig andig added the infrastructure Basic functionality label Jun 26, 2026
@andig andig enabled auto-merge (squash) June 26, 2026 21:03

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@andig andig disabled auto-merge June 26, 2026 21:03
@andig andig closed this Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Basic functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant