Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SchemaParser ¶
type SchemaParser struct {
// contains filtered or unexported fields
}
SchemaParser is a struct to hold the compiled schema and methods for parsing
func NewSchemaParser ¶
func NewSchemaParser(logger *slog.Logger, jsonSchema []byte) (*SchemaParser, error)
NewSchemaParser creates a new SchemaParser instance
func (*SchemaParser) CreateEmptyJSONDocument ¶
func (sp *SchemaParser) CreateEmptyJSONDocument() (interface{}, error)
CreateEmptyJSONDocument generates a JSON document with all required fields added empty