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",