schema

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(v any) (string, error)

Generate generates a JSON Schema definition from a Go Struct. It uses google/jsonschema-go/jsonschema for generation.

func ValidateJSON

func ValidateJSON(schemaStr string, jsonStr string) error

ValidateJSON validates a JSON string against a given schema string. It uses google/jsonschema-go/jsonschema for validation.

func ValidateStruct

func ValidateStruct(schemaStr string, input any) error

ValidateStruct validates a struct against a given schema string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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