From 91dcde2059a38735c917348c79dcaff52bd98bbc Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 15 Apr 2020 14:09:30 +0200 Subject: [PATCH] Revert "Remove the pear repository type from the JSON schema" --- res/composer-schema.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/res/composer-schema.json b/res/composer-schema.json index 1bdf1f438..3ee1835ca 100644 --- a/res/composer-schema.json +++ b/res/composer-schema.json @@ -640,6 +640,7 @@ { "$ref": "#/definitions/vcs-repository" }, { "$ref": "#/definitions/path-repository" }, { "$ref": "#/definitions/artifact-repository" }, + { "$ref": "#/definitions/pear-repository" }, { "$ref": "#/definitions/package-repository" } ] }, @@ -752,6 +753,28 @@ } } }, + "pear-repository": { + "type": "object", + "required": ["type", "url"], + "properties": { + "type": { "type": "string", "enum": ["pear"] }, + "url": { "type": "string" }, + "canonical": { "type": "boolean" }, + "only": { + "type": "array", + "items": { + "type": "string" + } + }, + "exclude": { + "type": "array", + "items": { + "type": "string" + } + }, + "vendor-alias": { "type": "string" } + } + }, "package-repository": { "type": "object", "required": ["type", "package"],