json

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAdditionalProperties added in v0.5.0

func CheckAdditionalProperties(schema *jsonschema.Schema, diffs *compatibilityErr)

func CheckPropertyDeleted added in v0.5.0

func CheckPropertyDeleted(prevSchema, currSchema *jsonschema.Schema, diffs *compatibilityErr)

func GetParsedSchema

func GetParsedSchema(data []byte) (schema.ParsedSchema, error)

Types

type Schema

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

func (*Schema) Format

func (s *Schema) Format() string

func (*Schema) GetCanonicalValue

func (s *Schema) GetCanonicalValue() *schema.SchemaFile

func (*Schema) IsBackwardCompatible

func (s *Schema) IsBackwardCompatible(against schema.ParsedSchema) error

IsBackwardCompatible checks backward compatibility against given schema

func (*Schema) IsForwardCompatible

func (s *Schema) IsForwardCompatible(against schema.ParsedSchema) error

IsForwardCompatible checks backward compatibility against given schema

func (*Schema) IsFullCompatible

func (s *Schema) IsFullCompatible(against schema.ParsedSchema) error

IsFullCompatible checks for forward compatibility

type SchemaCheck added in v0.5.0

type SchemaCheck func(curr *jsonschema.Schema, err *compatibilityErr)

type SchemaCompareCheck added in v0.5.0

type SchemaCompareCheck func(prev, curr *jsonschema.Schema, err *compatibilityErr)

func TypeCheckExecutor added in v0.5.0

func TypeCheckExecutor(spec TypeCheckSpec) SchemaCompareCheck

type TypeCheckSpec added in v0.5.0

type TypeCheckSpec struct {
	// contains filtered or unexported fields
}
var StandardTypeChecks TypeCheckSpec = TypeCheckSpec{emptyTypeChecks, objectTypeChecks, arrayTypeChecks}

Jump to

Keyboard shortcuts

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