From acf363876263e0eca620a77d2cfa5342f44e6217 Mon Sep 17 00:00:00 2001 From: Mads Kristensen Date: Fri, 28 Nov 2014 14:02:05 -0800 Subject: [PATCH] Converted to draft v4 schema Editors such as Visual Studio leverages JSON Schema draft v4, but this schema was authored in the old draft v3. With just a few minor changes, the schema is now draft v4. * Added `$schema` property to state it is using schema draft v4 * Changed `required` properties to arrays instead of strings. This is the only real difference from v3 to v4 in this schema --- res/composer-schema.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/res/composer-schema.json b/res/composer-schema.json index 95cd199e30bb..49ec0fa7a534 100644 --- a/res/composer-schema.json +++ b/res/composer-schema.json @@ -1,12 +1,13 @@ { + "$schema": "http://json-schema.org/draft-04/schema#", "name": "Package", "type": "object", "additionalProperties": false, + "required": [ "name", "description" ], "properties": { "name": { "type": "string", - "description": "Package name, including 'vendor-name/' prefix.", - "required": true + "description": "Package name, including 'vendor-name/' prefix." }, "type": { "description": "Package type, either 'library' for common packages, 'composer-plugin' for plugins, 'metapackage' for empty packages, or a custom type ([a-z0-9-]+) defined by whatever project this package applies to.", @@ -18,8 +19,7 @@ }, "description": { "type": "string", - "description": "Short package description.", - "required": true + "description": "Short package description." }, "keywords": { "type": "array", @@ -51,11 +51,11 @@ "items": { "type": "object", "additionalProperties": false, + "required": [ "name"], "properties": { "name": { "type": "string", - "description": "Full name of the author.", - "required": true + "description": "Full name of the author." }, "email": { "type": "string",