# node-red-contrib-full-msg-json-schema-validation

> JSON Schema validator for Node Red

Latest version **1.1.0** (published 2019-03-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-red-contrib-full-msg-json-schema-validation
pnpm add node-red-contrib-full-msg-json-schema-validation
yarn add node-red-contrib-full-msg-json-schema-validation
bun add node-red-contrib-full-msg-json-schema-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 | 1.1.0 |
| Published | 2019-03-21 |
| First published | 2018-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | oarroyo |
| Keywords | json, node, node-red, schema |

## Links

- npm: https://www.npmjs.com/package/node-red-contrib-full-msg-json-schema-validation
- Repository: https://github.com/oarroyog/node-red-contrib-json-schema
- Homepage: https://github.com/oarroyog/node-red-contrib-json-schema#readme
- Issues: https://github.com/oarroyog/node-red-contrib-json-schema/issues
- npm.io page: https://npm.io/package/node-red-contrib-full-msg-json-schema-validation

## Dependencies (2)

- [ajv](https://npm.io/package/ajv.md) ^5.2.2
- [global](https://npm.io/package/global.md) ^4.3.2

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.1.0 (latest) — 2019-03-21
- 1.0.2 — 2019-03-06
- 1.0.1 — 2018-04-26
- 1.0.0 — 2018-04-11

## README

# node-red-contrib-json-full-schema-validator
JSON Full Schema validator for Node Red is pretty easy to use.
Just open node properties and choose which property object wants to validate and paste JSON Schema
- OK will returned in first response
- KO will returned in second response. Error object with explanation will added in msg

**JSON Schema:**

{
  "title": "Person",
  "type": "object",
  "required":["lastName"],
  "properties": {
    "firstName": {
      "type": "string",
      "description": "The person's first name."
    },
    "lastName": {
      "type": "string",
      "description": "The person's last name."
    },
    "age": {
      "description": "Age in years which must be equal to or greater than zero.",
      "type": "integer",
      "minimum": 0
    }
  }
}

Examples:
- OK 
msg.payload= 
{
  "firstName": "John",
  "lastName": "Doe",
  "age": 1
};

- KO
msg.payload= 
{
  "firstName": "John",
  "age": 1
};

---
_Source: https://npm.io/package/node-red-contrib-full-msg-json-schema-validation · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
