Augmented.js Next Core - Validation Framework
Augmented.ValidationFramework - The Validation Framework Base Wrapper Class. Provides abstraction for base validation build-in library
Returns if the framework supports validation
Returns boolean Returns true if the framework supports validation
Registers a schema to the Framework
Returns boolean Returns true on success
Gets a schema
identity
string The identity of the schema
Returns object The JSON schema
Gets all schemas
Returns array all JSON schemas
Clears all schemas
Validates data via a schema
Returns object Returns the validation object
Validates data via a schema
Returns array Returns the validation messages
Validates data via a schema
model
(Augmented.Model | object) The model generate from
Returns object Returns the schema
- **See: https://github.com/geraintluff/uri-templates but with all the de-substitution stuff removed **
Augmented.Utility.SchemaGenerator
Genrate a schema from a set of data
data
object a dataset to produce a schema fromtitle
(optional, default"model"
)description
(optional, default"Generated Schema"
)