Skip to content

fix(schema): upgrade server.json dialect to JSON Schema 2020-12#1446

Open
piyushbag wants to merge 1 commit into
modelcontextprotocol:mainfrom
piyushbag:fix/842-json-schema-2020-12
Open

fix(schema): upgrade server.json dialect to JSON Schema 2020-12#1446
piyushbag wants to merge 1 commit into
modelcontextprotocol:mainfrom
piyushbag:fix/842-json-schema-2020-12

Conversation

@piyushbag

Copy link
Copy Markdown

Summary

The generated server.schema.json still advertised JSON Schema draft-07 while OpenAPI already sets jsonSchemaDialect to 2020-12. This updates the extractor and regenerates the draft artifact to match.

Approach

  • Emit https://json-schema.org/draft/2020-12/schema from tools/extract-server-schema
  • Regenerate docs/reference/server-json/draft/server.schema.json

Test plan

  • make generate-schema
  • make check-schema

Fixes #842

Match the OpenAPI jsonSchemaDialect and the official MCP server.json
schema by emitting https://json-schema.org/draft/2020-12/schema from the
extractor and regenerating the draft artifact.

Fixes modelcontextprotocol#842
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.

Upgrade JSON schema version to https://json-schema.org/draft/2020-12/schema

1 participant