From 145e5d118a5ffec3a5399af8af4dcbd69c95dffb Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 2 Feb 2023 12:02:14 +0800 Subject: [PATCH] schema: remove all additionalItems MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit they are of no use in the latest JSON Schema reference, see: https://json-schema.org/understanding-json-schema/reference/array.html > The items keyword can be used to control whether it’s valid to have additional items in a tuple beyond what is defined in prefixItems. The value of the items keyword is a schema that all additional items must pass in order for the keyword to validate. > Before to Draft 2020-12, you would use the additionalItems keyword to constrain additional items on a tuple. It works the same as items, only the name has changed. > In Draft 6 - 2019-09, the additionalItems keyword is ignored if there is not a "tuple validation" items keyword present in the same schema. --- schema/jsoncv.schema.json | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/schema/jsoncv.schema.json b/schema/jsoncv.schema.json index 63f8806..381eba8 100644 --- a/schema/jsoncv.schema.json +++ b/schema/jsoncv.schema.json @@ -74,7 +74,6 @@ "profiles": { "type": "array", "description": "Specify any number of social networks that you participate in", - "additionalItems": false, "items": { "type": "object", "additionalProperties": true, @@ -99,7 +98,6 @@ }, "work": { "type": "array", - "additionalItems": false, "items": { "type": "object", "additionalProperties": true, @@ -138,7 +136,6 @@ "highlights": { "type": "array", "description": "Specify multiple accomplishments", - "additionalItems": false, "items": { "type": "string", "description": "e.g. Increased profits by 20% from 2011-2012 through viral advertising" @@ -149,7 +146,6 @@ }, "volunteer": { "type": "array", - "additionalItems": false, "items": { "type": "object", "additionalProperties": true, @@ -180,7 +176,6 @@ "highlights": { "type": "array", "description": "Specify accomplishments and achievements", - "additionalItems": false, "items": { "type": "string", "description": "e.g. Increased profits by 20% from 2011-2012 through viral advertising" @@ -191,7 +186,6 @@ }, "education": { "type": "array", - "additionalItems": false, "items": { "type": "object", "additionalProperties": true, @@ -226,7 +220,6 @@ "courses": { "type": "array", "description": "List notable courses/subjects", - "additionalItems": false, "items": { "type": "string", "description": "e.g. H1302 - Introduction to American history" @@ -238,7 +231,6 @@ "awards": { "type": "array", "description": "Specify any awards you have received throughout your professional career", - "additionalItems": false, "items": { "type": "object", "additionalProperties": true, @@ -264,7 +256,6 @@ "certificates": { "type": "array", "description": "Specify any certificates you have received throughout your professional career", - "additionalItems": false, "items": { "type": "object", "additionalProperties": true, @@ -293,7 +284,6 @@ "publications": { "type": "array", "description": "Specify your publications through your career", - "additionalItems": false, "items": { "type": "object", "additionalProperties": true, @@ -324,7 +314,6 @@ "skills": { "type": "array", "description": "List out your professional skill-set", - "additionalItems": false, "items": { "type": "object", "additionalProperties": true, @@ -340,7 +329,6 @@ "keywords": { "type": "array", "description": "List some keywords pertaining to this skill", - "additionalItems": false, "items": { "type": "string", "description": "e.g. HTML" @@ -352,7 +340,6 @@ "languages": { "type": "array", "description": "List any other languages you speak", - "additionalItems": false, "items": { "type": "object", "additionalProperties": true, @@ -370,7 +357,6 @@ }, "interests": { "type": "array", - "additionalItems": false, "items": { "type": "object", "additionalProperties": true, @@ -381,7 +367,6 @@ }, "keywords": { "type": "array", - "additionalItems": false, "items": { "type": "string", "description": "e.g. Friedrich Nietzsche" @@ -393,7 +378,6 @@ "references": { "type": "array", "description": "List references you have received", - "additionalItems": false, "items": { "type": "object", "additionalProperties": true, @@ -412,7 +396,6 @@ "projects": { "type": "array", "description": "Specify career projects", - "additionalItems": false, "items": { "type": "object", "additionalProperties": true, @@ -428,7 +411,6 @@ "highlights": { "type": "array", "description": "Specify multiple features", - "additionalItems": false, "items": { "type": "string", "description": "e.g. Directs you close but not quite there" @@ -437,7 +419,6 @@ "keywords": { "type": "array", "description": "Specify special elements involved", - "additionalItems": false, "items": { "type": "string", "description": "e.g. AngularJS" @@ -457,7 +438,6 @@ "roles": { "type": "array", "description": "Specify your role on this project or in company", - "additionalItems": false, "items": { "type": "string", "description": "e.g. Team Lead, Speaker, Writer" @@ -497,4 +477,4 @@ }, "title": "Resume Schema", "type": "object" -} \ No newline at end of file +}