schema

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StandardizeSchema added in v1.6.0

func StandardizeSchema(schema model.Schema) model.Schema

adds default schema fields if not present, eg: additionalProperties [default: false]

Types

type Schema

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

func UseSchema

func UseSchema(schema model.Schema) (*Schema, *er.WdbError)

func (Schema) Validate

func (s Schema) Validate(data interface{}) (bool, *er.WdbError)

Jump to

Keyboard shortcuts

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