From d10720734d806fd25606dafd47b64e97ee7d1e7d Mon Sep 17 00:00:00 2001 From: Romain DARY Date: Sun, 3 Mar 2019 16:46:16 +0100 Subject: [PATCH] Fix wrong json schema reference (#961) `examples` is a new keyword introduce in `draft-06`. Source : [JSON Schema Draft 6 MetaSchema](http://json-schema.org/draft-06/schema) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c858efd..575861e 100644 --- a/README.md +++ b/README.md @@ -227,7 +227,7 @@ JSON Schema specification defines several annotation keywords that describe sche - `title` and `description`: information about the data represented by that schema - `$comment` (NEW in draft-07): information for developers. With option `$comment` Ajv logs or passes the comment string to the user-supplied function. See [Options](#options). - `default`: a default value of the data instance, see [Assigning defaults](#assigning-defaults). -- `examples` (NEW in draft-07): an array of data instances. Ajv does not check the validity of these instances against the schema. +- `examples` (NEW in draft-06): an array of data instances. Ajv does not check the validity of these instances against the schema. - `readOnly` and `writeOnly` (NEW in draft-07): marks data-instance as read-only or write-only in relation to the source of the data (database, api, etc.). - `contentEncoding`: [RFC 2045](https://tools.ietf.org/html/rfc2045#section-6.1 ), e.g., "base64". - `contentMediaType`: [RFC 2046](https://tools.ietf.org/html/rfc2046), e.g., "image/png".