validation

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateEntityDefinition

func ValidateEntityDefinition(entity map[string]any) []string

ValidateEntityDefinition validates an entity definition structure

func ValidateJSON

func ValidateJSON(schema map[string]any, data []byte) error

ValidateJSON validates a JSON payload `data` against a minimal subset of JSON Schema contained in `schema`. Supported subset: - type: object - properties: string|number|integer|boolean|object (object validated shallowly) - required: [..] Returns first error encountered for simplicity.

Types

This section is empty.

Jump to

Keyboard shortcuts

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