Documentation
¶
Overview ¶
Package jsonschema renders schema.Schema values to plain JSON Schema compatible json.RawMessage.
Unlike render/openapi and render/asyncapi, this package produces stand-alone JSON Schema objects without any OpenAPI or AsyncAPI envelope. The output is suitable for use as MCP tool input/output schemas or any context that requires raw JSON Schema rather than a full API document.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Schema ¶
func Schema(s schema.Schema) (json.RawMessage, error)
Schema renders s to a JSON Schema compatible json.RawMessage. Returns nil when s is the zero value — callers may omit the schema field.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.