Socket
Book a DemoInstallSign in
Socket

jsvrx-djv

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsvrx-djv

RxJS operators to validate/discriminate data objects using JSON Schema(s) and Djv.

2.0.0
latest
Source
npmnpm
Version published
Weekly downloads
11
266.67%
Maintainers
1
Weekly downloads
 
Created
Source

jsvrx-djv

RxJS operators to validate/discriminate data objects using JSON Schema(s) and Dynamic JSON Schema Validator.

npm djv npm bundle size Top Language MIT License

Install

npm i jsvrx-djv

Usage

DjvDataValidtor is DataValidator interface implementation using Djv.

For more information about DataValidation interface and usage examples see jsvrx.

Create a new DjvDataValidator instance by passing a djv instance as the constructor's parameter.

import djv from 'djv';
import { DjvDataValidator } from { jsvrx-djv }
const djvVD = new djv();
djvVD.useVersion('draft-06');
const dv = new DjvDataValidator(djvVD);

DjvDataValidator.discriminate(ids: JSONSchemaID[], inv?: JSONSchemaID) implementation doesn't provide optimized validation for multiple JSON Schemas. It executes single JSON Schema validation attempts in ids array order. Fill the ids array accordingly.

Keywords

JSON

FAQs

Package last updated on 03 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.