package
0.0.0-20240813060107-005fe8a3629a
Repository: https://github.com/arduino/arduino-lint.git
Documentation: pkg.go.dev
# Packages
Package compliancelevel defines the levels of specification compliance.
Package schemadata contains the encoded JSON schemas.
# Functions
Compile compiles the schema files specified by the filename arguments and returns the compiled schema.
MisspelledOptionalPropertyFound returns whether a misspelled optional property was found.
ProhibitedAdditionalProperties returns whether the given property has prohibited additional subproperty(s).
PropertyDependenciesMissing returns whether property dependencies of the given property are missing.
PropertyEnumMismatch returns whether the given property does not match any of the items in the enum array.
PropertyFormatMismatch returns whether the given property has incorrect format.
PropertyGreaterThanMaxLength returns whether the given property is greater than the maximum length allowed by the schema.
PropertyLessThanMinLength returns whether the given property is less than the minimum length allowed by the schema.
PropertyPatternMismatch returns whether the given property did not match the regular expression defined in the JSON schema.
PropertyTypeMismatch returns whether the given property has incorrect type.
RequiredPropertyMissing returns whether the given required property is missing from the document.
Validate validates an instance against a JSON schema and returns nil if it was success, or the jsonschema.ValidationError object otherwise.
ValidationErrorMatch returns whether the given query matches against the JSON schema validation error.
# Structs
Schema is the type of the compiled JSON schema object.
ValidationResult is the type of the result of the validation of the instance document against the JSON schema.