Documentation ¶
Index ¶
- func CheckAdditionalProperties(schema *jsonschema.Schema, diffs *compatibilityErr)
- func CheckPropertyDeleted(prevSchema, currSchema *jsonschema.Schema, diffs *compatibilityErr)
- func GetParsedSchema(data []byte) (schema.ParsedSchema, error)
- type Schema
- func (s *Schema) Format() string
- func (s *Schema) GetCanonicalValue() *schema.SchemaFile
- func (s *Schema) IsBackwardCompatible(against schema.ParsedSchema) error
- func (s *Schema) IsForwardCompatible(against schema.ParsedSchema) error
- func (s *Schema) IsFullCompatible(against schema.ParsedSchema) error
- type SchemaCheck
- type SchemaCompareCheck
- type TypeCheckSpec
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) 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}
Click to show internal directories.
Click to hide internal directories.