jsonschema

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL