Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ajv

Package Overview
Dependencies
Maintainers
1
Versions
355
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajv - npm Package Compare versions

Comparing version 0.4.5 to 0.4.6

spec/tests/issues/1_ids_in_refs.json

2

package.json
{
"name": "ajv",
"version": "0.4.5",
"version": "0.4.6",
"description": "Another JSON schema Validator",

@@ -5,0 +5,0 @@ "main": "lib/ajv.js",

@@ -6,2 +6,3 @@ # ajv - Another JSON Schema Validator

[![Build Status](https://travis-ci.org/epoberezkin/ajv.svg?branch=master)](https://travis-ci.org/epoberezkin/ajv)
[![npm version](https://badge.fury.io/js/ajv.svg)](http://badge.fury.io/js/ajv)

@@ -15,3 +16,3 @@ ## JSON Schema standard

- correct string lengths for strings with unicode pairs (can be turned off)
- formats defined by JSON Schema draft 4 standard (can be turned off)
- formats defined by JSON Schema draft 4 standard and custom formats (can be turned off)

@@ -25,3 +26,7 @@ ajv passes all the tests from [JSON Schema Test Suite](https://github.com/json-schema/JSON-Schema-Test-Suite) (apart from the one that requires that `1.0` is not an integer).

[Same benchmark](https://github.com/epoberezkin/json-schema-benchmark) run on faster CPU with node 0.12.
[Benchmark of individual test cases](https://rawgit.com/zaggino/z-schema/master/benchmark/results.html) by [z-schema](https://github.com/zaggino/z-schema).
## Install

@@ -28,0 +33,0 @@

@@ -69,3 +69,3 @@ 'use strict';

// if (testSet.description != 'remote ref, containing refs itself') return;
describe(testSet.description, function() {
(testSet.skip ? describe.skip : describe)(testSet.description, function() {
var validate, fullValidate;

@@ -81,3 +81,3 @@ // it(testSet.description, function() {

// if (test.description != 'valid object from z-schema benchmark') return;
it(test.description, function() {
(test.skip ? it.skip : it)(test.description, function() {
var valid = validate(test.data);

@@ -84,0 +84,0 @@ // console.log('result', valid, test.valid, validate.errors);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc