registry

package
v0.0.0-...-d133689 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaStore

type SchemaStore struct {
	// contains filtered or unexported fields
}

func NewSchemaStore

func NewSchemaStore() *SchemaStore

func (*SchemaStore) Validate

func (ss *SchemaStore) Validate(ctx context.Context, schema string, raw []byte) error

Validate validates a JSON payload against a schema.

ctx - The context for the operation. Currently unused. schema - The schema ID (e.g. "iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0") raw - The raw JSON payload bytes to validate.

Returns an error if the payload is invalid against the schema, or nil if valid.

Jump to

Keyboard shortcuts

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