# next-core-validation

> The Augmented.js Next - Validation Framework.

Latest version **3.0.1** (published 2020-12-31) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install next-core-validation
pnpm add next-core-validation
yarn add next-core-validation
bun add next-core-validation
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2020-12-31 |
| First published | 2018-08-20 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 948.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bob Warren |
| Maintainers | thedocbwarren |
| Keywords | augmentedjs, presentation |

## Links

- npm: https://www.npmjs.com/package/next-core-validation
- Repository: https://github.com/Augmentedjs/next-core-validation
- Homepage: http://www.augmentedjs.com
- Issues: https://github.com/Augmentedjs/next-core-validation/issues
- npm.io page: https://npm.io/package/next-core-validation

## Dependencies (1)

- [next-core-utilities](https://npm.io/package/next-core-utilities.md) ^3.3.0

## Recent versions

- 3.0.1 (latest) — 2020-12-31
- 3.0.0 — 2020-12-31
- 2.5.5 — 2019-09-27
- 2.5.4 — 2019-05-19
- 2.5.3 — 2018-08-20

## README

# next-core-validation

Augmented.js Next Core - Validation Framework

# API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

-   [ValidationFramework](#validationframework)
    -   [supportsValidation](#supportsvalidation)
    -   [registerSchema](#registerschema)
        -   [Parameters](#parameters)
    -   [getSchema](#getschema)
        -   [Parameters](#parameters-1)
    -   [getSchemas](#getschemas)
    -   [clearSchemas](#clearschemas)
    -   [validate](#validate)
        -   [Parameters](#parameters-2)
    -   [getValidationMessages](#getvalidationmessages)
    -   [generateSchema](#generateschema)
        -   [Parameters](#parameters-3)
-   [URI_TEMPLATE_GLOBAL_MODIFIERS](#uri_template_global_modifiers)
-   [SchemaGenerator](#schemagenerator)
    -   [Parameters](#parameters-4)

## ValidationFramework

Augmented.ValidationFramework -
The Validation Framework Base Wrapper Class.
Provides abstraction for base validation build-in library

### supportsValidation

Returns if the framework supports validation

Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Returns true if the framework supports validation

### registerSchema

Registers a schema to the Framework

#### Parameters

-   `identity` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The identity of the schema
-   `schema` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The JSON schema

Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Returns true on success

### getSchema

Gets a schema

#### Parameters

-   `identity` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The identity of the schema

Returns **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The JSON schema

### getSchemas

Gets all schemas

Returns **[array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** all JSON schemas

### clearSchemas

Clears all schemas

### validate

Validates data via a schema

#### Parameters

-   `data` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The data to validate
-   `schema` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The JSON schema

Returns **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Returns the validation object

### getValidationMessages

Validates data via a schema

Returns **[array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** Returns the validation messages

### generateSchema

Validates data via a schema

#### Parameters

-   `model` **(Augmented.Model | [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object))** The model generate from

Returns **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Returns the schema

## URI_TEMPLATE_GLOBAL_MODIFIERS

-   **See: <https://github.com/geraintluff/uri-templates>
    but with all the de-substitution stuff removed
    **

## SchemaGenerator

<p>Augmented.Utility.SchemaGenerator<br/>

Genrate a schema from a set of data</p>

### Parameters

-   `data` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** a dataset to produce a schema from
-   `title`   (optional, default `"model"`)
-   `description`   (optional, default `"Generated Schema"`)

---
_Source: https://npm.io/package/next-core-validation · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
