# Packages
No description provided by the author
# Functions
Compare allows the comparison of two semantic versions with a given comparator defined by the Comparator enumeration.
ExtractSchemaAuthorDID parses the schema URI (did:work:<authorDID>;id=<uuid>;version=<version>) and returns the author's DID.
ExtractSchemaResourceID parses the schema URI (did:work:<authorDID>;id=<uuid>;version=<version>) and returns the resource ID.
ExtractSchemaVersionFromID parses the schema URI (did:work:<authorDID>;id=<uuid>;version=<version>) and returns the schema version.
Find the most recently created validator the supports the provided version.
IDIsInVersionRange checks if the schema version falls within the given range.
InRangeInclusive determines whether the provided version is in the inclusive range of the provided version bounds.
True if string is valid JSON, false otherwise.
RangeFromStr parses a string into a Range object.
Validate exists to hide gojsonschema logic within this file it is the entry-point to validation logic, requiring the caller pass in valid json strings for each argument.
Validate a credential's data is valid against its schema.
ValidateJSONSchema takes in a map that is purported to be a JSON schema (schema definition) An error is returned if it is not a valid JSON schema, and nil is returned on success.
ValidateJSONSchema takes in a string that is purported to be a JSON schema (schema definition) An error is returned if it is not a valid JSON schema, and nil is returned on success.
No description provided by the author
Validates a schema by finding the right validation method according to the version It is possible that multiple validation methods would be supported for a given version, so we always choose the validation method created last (heavy assumption here that the versions we track are properly ordered).
ValidateSchemaUpdate compares two schemas using schemaver rules and returns a summary of the update, which includes whether it's a major or minor change and a proposed version for the schema update.
Validate takes schema and document loaders; the document from the loader is validated against the schema from the loader.
VersionFromStr parses a version string into a Version object.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
TODO add support for arrays of objects and arrays.
No description provided by the author
No description provided by the author
IDFormatErr is a formatting error in the Schema ID, which should be in the form <author_did>;id=<uuid>;version=<major.minor>.
No description provided by the author
No description provided by the author
No description provided by the author
Note uses Prefix range https://docs.gradle.org/current/userguide/single_versions.html.
No description provided by the author
UnRecognisedRangeError is returned when encountering an invalid range string.
UnRecognisedVersionError is a formatting error in the Schema version, which should be in the form "major.minor".
No description provided by the author
No description provided by the author
wrapper around modified semantic version where only major and minor numbers are valid.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author