From d80b6cde4a585be54c678421af5303b87c229c39 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Sun, 21 Mar 2021 18:23:17 +0000 Subject: [PATCH] 8.0.0-beta.3 --- .tonic_example.js | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.tonic_example.js b/.tonic_example.js index 72433a513..0d578d5d5 100644 --- a/.tonic_example.js +++ b/.tonic_example.js @@ -2,10 +2,13 @@ const Ajv = require("ajv") const ajv = new Ajv({allErrors: true}) const schema = { + type: "object", properties: { foo: {type: "string"}, bar: {type: "number", maximum: 3}, }, + required: ["foo", "bar"], + additionalProperties: false, } const validate = ajv.compile(schema) diff --git a/package.json b/package.json index 190540e70..0067fd3bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ajv", - "version": "8.0.0-beta.2", + "version": "8.0.0-beta.3", "description": "Another JSON Schema Validator", "main": "dist/ajv.js", "types": "dist/ajv.d.ts",