Skip to content

jsonschema: support additional keywords #69

@jba

Description

@jba

The JSON Schema spec allows additional keywords, beyond those in the various specified vocabularies.

The Schema type should support that. The obvious way is to add a map[string]any field. We then have to ensure that the map keys are JSON-marshaled at top level, along with the other keywords. That is a bit tricky, but we have [un]marshalStructWithMap in mcp/util.go.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions