Versions in this module Expand all Collapse all v1 v1.0.0 Jun 10, 2022 Changes in this version + func ParseBytes(b []byte) error + type AdditionalProperties struct + func NewAdditionalProperties(ruleValue bytes.Bytes) *AdditionalProperties + func (AdditionalProperties) IsJsonTypeCompatible(t json.Type) bool + func (AdditionalProperties) Type() Type + func (c AdditionalProperties) ASTNode() jschema.RuleASTNode + func (c AdditionalProperties) IsEqual(c2 AdditionalProperties) bool + func (c AdditionalProperties) Mode() AdditionalPropertiesMode + func (c AdditionalProperties) SchemaType() jschema.SchemaType + func (c AdditionalProperties) String() string + func (c AdditionalProperties) TypeName() bytes.Bytes + type AdditionalPropertiesMode int + const AdditionalPropertiesCanBeAny + const AdditionalPropertiesMustBeSchemaType + const AdditionalPropertiesMustBeType + const AdditionalPropertiesNotAllowed + type AllOf struct + func NewAllOf() *AllOf + func (AllOf) IsJsonTypeCompatible(t json.Type) bool + func (AllOf) Type() Type + func (c *AllOf) Append(scalar bytes.Bytes) + func (c AllOf) ASTNode() jschema.RuleASTNode + func (c AllOf) SchemaNames() []string + func (c AllOf) String() string + type AnyConstraint struct + func NewAny() *AnyConstraint + func (AnyConstraint) ASTNode() jschema.RuleASTNode + func (AnyConstraint) IsJsonTypeCompatible(json.Type) bool + func (AnyConstraint) String() string + func (AnyConstraint) Type() Type + type ArrayValidator interface + ValidateTheArray func(numberOfChildren uint) + Value func() *json.Number + type BoolKeeper interface + Bool func() bool + type BytesKeeper interface + Bytes func() bytes.Bytes + type Const struct + func NewConst(value, nodeValue bytes.Bytes) *Const + func (Const) IsJsonTypeCompatible(t json.Type) bool + func (Const) Type() Type + func (c Const) ASTNode() jschema.RuleASTNode + func (c Const) Bool() bool + func (c Const) String() string + func (c Const) Validate(v bytes.Bytes) + type Constraint interface + ASTNode func() jschema.RuleASTNode + IsJsonTypeCompatible func(json.Type) bool + String func() string + Type func() Type + func NewConstraintFromRule(ruleNameLex lexeme.LexEvent, ruleValue bytes.Bytes, nodeValue bytes.Bytes) Constraint + type Date struct + func NewDate() *Date + func (Date) ASTNode() jschema.RuleASTNode + func (Date) IsJsonTypeCompatible(t json.Type) bool + func (Date) String() string + func (Date) Type() Type + func (Date) Validate(value bytes.Bytes) + type DateTime struct + func NewDateTime() *DateTime + func (DateTime) ASTNode() jschema.RuleASTNode + func (DateTime) IsJsonTypeCompatible(t json.Type) bool + func (DateTime) String() string + func (DateTime) Type() Type + func (DateTime) Validate(value bytes.Bytes) + type Email struct + func NewEmail() *Email + func (Email) ASTNode() jschema.RuleASTNode + func (Email) IsJsonTypeCompatible(t json.Type) bool + func (Email) String() string + func (Email) Type() Type + func (Email) Validate(email bytes.Bytes) + type Enum struct + func NewEnum() *Enum + func (Enum) IsJsonTypeCompatible(t json.Type) bool + func (Enum) Type() Type + func (c *Enum) Append(b jbytes.Bytes) int + func (c *Enum) SetComment(idx int, comment string) + func (c Enum) ASTNode() jschema.RuleASTNode + func (c Enum) String() string + func (c Enum) Validate(a jbytes.Bytes) + type ExclusiveMaximum struct + func NewExclusiveMaximum(ruleValue bytes.Bytes) *ExclusiveMaximum + func (ExclusiveMaximum) IsJsonTypeCompatible(t json.Type) bool + func (ExclusiveMaximum) Type() Type + func (c ExclusiveMaximum) ASTNode() jschema.RuleASTNode + func (c ExclusiveMaximum) IsExclusive() bool + func (c ExclusiveMaximum) String() string + type ExclusiveMinimum struct + func NewExclusiveMinimum(ruleValue bytes.Bytes) *ExclusiveMinimum + func (ExclusiveMinimum) IsJsonTypeCompatible(t json.Type) bool + func (ExclusiveMinimum) Type() Type + func (c ExclusiveMinimum) ASTNode() jschema.RuleASTNode + func (c ExclusiveMinimum) IsExclusive() bool + func (c ExclusiveMinimum) String() string + type LiteralValidator interface + Validate func(bytes.Bytes) + type Max struct + func NewMax(ruleValue bytes.Bytes) *Max + func (Max) IsJsonTypeCompatible(t json.Type) bool + func (Max) Type() Type + func (c *Max) SetExclusive(exclusive bool) + func (c Max) ASTNode() jschema.RuleASTNode + func (c Max) String() string + func (c Max) Validate(value bytes.Bytes) + type MaxItems struct + func NewMaxItems(ruleValue bytes.Bytes) *MaxItems + func (MaxItems) IsJsonTypeCompatible(t json.Type) bool + func (MaxItems) Type() Type + func (c MaxItems) ASTNode() jschema.RuleASTNode + func (c MaxItems) String() string + func (c MaxItems) ValidateTheArray(numberOfChildren uint) + func (c MaxItems) Value() *json.Number + type MaxLength struct + func NewMaxLength(ruleValue bytes.Bytes) *MaxLength + func (MaxLength) IsJsonTypeCompatible(t json.Type) bool + func (MaxLength) Type() Type + func (c MaxLength) ASTNode() jschema.RuleASTNode + func (c MaxLength) String() string + func (c MaxLength) Validate(value bytes.Bytes) + type Min struct + func NewMin(ruleValue bytes.Bytes) *Min + func (Min) IsJsonTypeCompatible(t json.Type) bool + func (Min) Type() Type + func (c *Min) SetExclusive(exclusive bool) + func (c Min) ASTNode() jschema.RuleASTNode + func (c Min) String() string + func (c Min) Validate(value bytes.Bytes) + type MinItems struct + func NewMinItems(ruleValue bytes.Bytes) *MinItems + func (MinItems) IsJsonTypeCompatible(t json.Type) bool + func (MinItems) Type() Type + func (c MinItems) ASTNode() jschema.RuleASTNode + func (c MinItems) String() string + func (c MinItems) ValidateTheArray(numberOfChildren uint) + func (c MinItems) Value() *json.Number + type MinLength struct + func NewMinLength(ruleValue bytes.Bytes) *MinLength + func (MinLength) IsJsonTypeCompatible(t json.Type) bool + func (MinLength) Type() Type + func (c MinLength) ASTNode() jschema.RuleASTNode + func (c MinLength) String() string + func (c MinLength) Validate(value bytes.Bytes) + type Nullable struct + func NewNullable(ruleValue bytes.Bytes) *Nullable + func (Nullable) IsJsonTypeCompatible(json.Type) bool + func (Nullable) Type() Type + func (c Nullable) ASTNode() jschema.RuleASTNode + func (c Nullable) Bool() bool + func (c Nullable) String() string + type Optional struct + func NewOptional(ruleValue bytes.Bytes) *Optional + func (Optional) IsJsonTypeCompatible(json.Type) bool + func (Optional) Type() Type + func (c Optional) ASTNode() jschema.RuleASTNode + func (c Optional) Bool() bool + func (c Optional) String() string + type Or struct + func NewOr(s jschema.RuleASTNodeSource) *Or + func (Or) ASTNode() jschema.RuleASTNode + func (Or) IsJsonTypeCompatible(json.Type) bool + func (Or) String() string + func (Or) Type() Type + func (c Or) IsGenerated() bool + type Precision struct + func NewPrecision(ruleValue bytes.Bytes) *Precision + func (Precision) IsJsonTypeCompatible(t json.Type) bool + func (Precision) Type() Type + func (c Precision) ASTNode() jschema.RuleASTNode + func (c Precision) String() string + func (c Precision) Validate(value bytes.Bytes) + type Regex struct + func NewRegex(value bytes.Bytes) *Regex + func (Regex) IsJsonTypeCompatible(t internalJSON.Type) bool + func (Regex) Type() Type + func (c Regex) ASTNode() jschema.RuleASTNode + func (c Regex) String() string + func (c Regex) Validate(value bytes.Bytes) + type RequiredKeys struct + func NewRequiredKeys() *RequiredKeys + func (RequiredKeys) IsJsonTypeCompatible(t json.Type) bool + func (RequiredKeys) Type() Type + func (c *RequiredKeys) AddKey(key string) + func (c RequiredKeys) ASTNode() jschema.RuleASTNode + func (c RequiredKeys) Keys() []string + func (c RequiredKeys) String() string + type Type int + const AdditionalPropertiesConstraintType + const AllOfConstraintType + const AnyConstraintType + const ConstType + const DateConstraintType + const DateTimeConstraintType + const EmailConstraintType + const EnumConstraintType + const ExclusiveMaximumConstraintType + const ExclusiveMinimumConstraintType + const MaxConstraintType + const MaxItemsConstraintType + const MaxLengthConstraintType + const MinConstraintType + const MinItemsConstraintType + const MinLengthConstraintType + const NullableConstraintType + const OptionalConstraintType + const OrConstraintType + const PrecisionConstraintType + const RegexConstraintType + const RequiredKeysConstraintType + const TypeConstraintType + const TypesListConstraintType + const UriConstraintType + const UuidConstraintType + func (t Type) String() string + type TypeConstraint struct + func NewType(ruleValue bytes.Bytes, source jschema.RuleASTNodeSource) *TypeConstraint + func (TypeConstraint) IsJsonTypeCompatible(json.Type) bool + func (TypeConstraint) Type() Type + func (c TypeConstraint) ASTNode() jschema.RuleASTNode + func (c TypeConstraint) Bytes() bytes.Bytes + func (c TypeConstraint) IsGenerated() bool + func (c TypeConstraint) Source() jschema.RuleASTNodeSource + func (c TypeConstraint) String() string + type TypesList struct + func NewTypesList(s jschema.RuleASTNodeSource) *TypesList + func (TypesList) IsJsonTypeCompatible(json.Type) bool + func (TypesList) Type() Type + func (c *TypesList) AddName(name, typ string, s jschema.RuleASTNodeSource) + func (c *TypesList) AddNameWithASTNode(name, typ string, an jschema.RuleASTNode) + func (c TypesList) ASTNode() jschema.RuleASTNode + func (c TypesList) HasUserTypes() bool + func (c TypesList) Len() int + func (c TypesList) Names() []string + func (c TypesList) Source() jschema.RuleASTNodeSource + func (c TypesList) String() string + type Uri struct + func NewUri() *Uri + func (Uri) ASTNode() jschema.RuleASTNode + func (Uri) IsJsonTypeCompatible(t json.Type) bool + func (Uri) String() string + func (Uri) Type() Type + func (Uri) Validate(value bytes.Bytes) + type Uuid struct + func NewUuid() *Uuid + func (Uuid) ASTNode() jschema.RuleASTNode + func (Uuid) IsJsonTypeCompatible(t json.Type) bool + func (Uuid) String() string + func (Uuid) Type() Type + func (Uuid) Validate(value jbytes.Bytes)