schema: remove all additionalItems

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.
This commit is contained in:
Reorx 2023-02-02 12:02:14 +08:00
parent bd4ee30289
commit 145e5d118a
1 changed files with 1 additions and 21 deletions

View File

@ -74,7 +74,6 @@
"profiles": { "profiles": {
"type": "array", "type": "array",
"description": "Specify any number of social networks that you participate in", "description": "Specify any number of social networks that you participate in",
"additionalItems": false,
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
@ -99,7 +98,6 @@
}, },
"work": { "work": {
"type": "array", "type": "array",
"additionalItems": false,
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
@ -138,7 +136,6 @@
"highlights": { "highlights": {
"type": "array", "type": "array",
"description": "Specify multiple accomplishments", "description": "Specify multiple accomplishments",
"additionalItems": false,
"items": { "items": {
"type": "string", "type": "string",
"description": "e.g. Increased profits by 20% from 2011-2012 through viral advertising" "description": "e.g. Increased profits by 20% from 2011-2012 through viral advertising"
@ -149,7 +146,6 @@
}, },
"volunteer": { "volunteer": {
"type": "array", "type": "array",
"additionalItems": false,
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
@ -180,7 +176,6 @@
"highlights": { "highlights": {
"type": "array", "type": "array",
"description": "Specify accomplishments and achievements", "description": "Specify accomplishments and achievements",
"additionalItems": false,
"items": { "items": {
"type": "string", "type": "string",
"description": "e.g. Increased profits by 20% from 2011-2012 through viral advertising" "description": "e.g. Increased profits by 20% from 2011-2012 through viral advertising"
@ -191,7 +186,6 @@
}, },
"education": { "education": {
"type": "array", "type": "array",
"additionalItems": false,
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
@ -226,7 +220,6 @@
"courses": { "courses": {
"type": "array", "type": "array",
"description": "List notable courses/subjects", "description": "List notable courses/subjects",
"additionalItems": false,
"items": { "items": {
"type": "string", "type": "string",
"description": "e.g. H1302 - Introduction to American history" "description": "e.g. H1302 - Introduction to American history"
@ -238,7 +231,6 @@
"awards": { "awards": {
"type": "array", "type": "array",
"description": "Specify any awards you have received throughout your professional career", "description": "Specify any awards you have received throughout your professional career",
"additionalItems": false,
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
@ -264,7 +256,6 @@
"certificates": { "certificates": {
"type": "array", "type": "array",
"description": "Specify any certificates you have received throughout your professional career", "description": "Specify any certificates you have received throughout your professional career",
"additionalItems": false,
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
@ -293,7 +284,6 @@
"publications": { "publications": {
"type": "array", "type": "array",
"description": "Specify your publications through your career", "description": "Specify your publications through your career",
"additionalItems": false,
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
@ -324,7 +314,6 @@
"skills": { "skills": {
"type": "array", "type": "array",
"description": "List out your professional skill-set", "description": "List out your professional skill-set",
"additionalItems": false,
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
@ -340,7 +329,6 @@
"keywords": { "keywords": {
"type": "array", "type": "array",
"description": "List some keywords pertaining to this skill", "description": "List some keywords pertaining to this skill",
"additionalItems": false,
"items": { "items": {
"type": "string", "type": "string",
"description": "e.g. HTML" "description": "e.g. HTML"
@ -352,7 +340,6 @@
"languages": { "languages": {
"type": "array", "type": "array",
"description": "List any other languages you speak", "description": "List any other languages you speak",
"additionalItems": false,
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
@ -370,7 +357,6 @@
}, },
"interests": { "interests": {
"type": "array", "type": "array",
"additionalItems": false,
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
@ -381,7 +367,6 @@
}, },
"keywords": { "keywords": {
"type": "array", "type": "array",
"additionalItems": false,
"items": { "items": {
"type": "string", "type": "string",
"description": "e.g. Friedrich Nietzsche" "description": "e.g. Friedrich Nietzsche"
@ -393,7 +378,6 @@
"references": { "references": {
"type": "array", "type": "array",
"description": "List references you have received", "description": "List references you have received",
"additionalItems": false,
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
@ -412,7 +396,6 @@
"projects": { "projects": {
"type": "array", "type": "array",
"description": "Specify career projects", "description": "Specify career projects",
"additionalItems": false,
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
@ -428,7 +411,6 @@
"highlights": { "highlights": {
"type": "array", "type": "array",
"description": "Specify multiple features", "description": "Specify multiple features",
"additionalItems": false,
"items": { "items": {
"type": "string", "type": "string",
"description": "e.g. Directs you close but not quite there" "description": "e.g. Directs you close but not quite there"
@ -437,7 +419,6 @@
"keywords": { "keywords": {
"type": "array", "type": "array",
"description": "Specify special elements involved", "description": "Specify special elements involved",
"additionalItems": false,
"items": { "items": {
"type": "string", "type": "string",
"description": "e.g. AngularJS" "description": "e.g. AngularJS"
@ -457,7 +438,6 @@
"roles": { "roles": {
"type": "array", "type": "array",
"description": "Specify your role on this project or in company", "description": "Specify your role on this project or in company",
"additionalItems": false,
"items": { "items": {
"type": "string", "type": "string",
"description": "e.g. Team Lead, Speaker, Writer" "description": "e.g. Team Lead, Speaker, Writer"