Schema Validation
hairyhenderson/gomplateImplement a schema validation feature to enforce data structure constraints. The system should verify that input data conforms to a provided JSON Schema, returning an error if validation fails.
Requirements
- →Create a factory function CreateSchemaFuncs(ctx context.Context) map[string]any
- →The map must contain a key "schemas" mapped to a function with signature func() any
- →The object must have a method Validate(schema, input any) (string, error)
- →Return empty string on success to ensure support for standard schema draft versions