From 2881687f18a7cd4224d1e05c54f6551b2c565b0c Mon Sep 17 00:00:00 2001 From: ergebnis-bot Date: Sat, 15 Aug 2020 09:15:27 +0000 Subject: [PATCH] Enhancement: Update schema.json --- CHANGELOG.md | 15 +++++- resource/schema.json | 109 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 120 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2155ef81..6abb36e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## Unreleased -For a full diff see [`2.6.1...main`][2.6.1...main]. +For a full diff see [`2.7.0...main`][2.7.0...main]. + +## [`2.7.0`][2.7.0] + +For a full diff see [`2.6.1...2.7.0`][2.6.1...2.7.0]. + +### Changed + +* Updated `schema.json` ([#512]), by [@ergebnis-bot] ## [`2.6.1`][2.6.1] @@ -412,6 +420,7 @@ For a full diff see [`81bc3a8...0.1.0`][81bc3a8...0.1.0]. [2.5.2]: https://github.com/ergebnis/composer-normalize/releases/tag/2.5.2 [2.6.0]: https://github.com/ergebnis/composer-normalize/releases/tag/2.6.0 [2.6.1]: https://github.com/ergebnis/composer-normalize/releases/tag/2.6.1 +[2.7.0]: https://github.com/ergebnis/composer-normalize/releases/tag/2.7.0 [81bc3a8...0.1.0]: https://github.com/ergebnis/composer-normalize/compare/81bc3a8...0.1.0 [0.1.0...0.2.0]: https://github.com/ergebnis/composer-normalize/compare/0.1.0...0.2.0 @@ -451,7 +460,8 @@ For a full diff see [`81bc3a8...0.1.0`][81bc3a8...0.1.0]. [2.5.1...2.5.2]: https://github.com/ergebnis/composer-normalize/compare/2.5.1...2.5.2 [2.5.2...2.6.0]: https://github.com/ergebnis/composer-normalize/compare/2.5.2...2.6.0 [2.6.0...2.6.1]: https://github.com/ergebnis/composer-normalize/compare/2.6.0...2.6.1 -[2.6.1...main]: https://github.com/ergebnis/composer-normalize/compare/2.6.1...main +[2.6.1...2.7.0]: https://github.com/ergebnis/composer-normalize/compare/2.6.1...2.7.0 +[2.7.0...main]: https://github.com/ergebnis/composer-normalize/compare/2.7.0...main [#1]: https://github.com/ergebnis/composer-normalize/pull/1 [#2]: https://github.com/ergebnis/composer-normalize/pull/2 @@ -510,6 +520,7 @@ For a full diff see [`81bc3a8...0.1.0`][81bc3a8...0.1.0]. [#484]: https://github.com/ergebnis/composer-normalize/pull/484 [#485]: https://github.com/ergebnis/composer-normalize/pull/485 [#487]: https://github.com/ergebnis/composer-normalize/pull/487 +[#512]: https://github.com/ergebnis/composer-normalize/pull/512 [@core23]: https://github.com/core23 [@dependabot]: https://github.com/dependabot diff --git a/resource/schema.json b/resource/schema.json index cd8aae1d..17e93c5f 100644 --- a/resource/schema.json +++ b/resource/schema.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "https://json-schema.org/draft-04/schema#", "name": "Package", "type": "object", "additionalProperties": true, @@ -7,7 +7,8 @@ "properties": { "name": { "type": "string", - "description": "Package name, including 'vendor-name/' prefix." + "description": "Package name, including 'vendor-name/' prefix.", + "pattern": "^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]?|-{0,2})[a-z0-9]+)*$" }, "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.", @@ -326,6 +327,10 @@ "lock": { "type": "boolean", "description": "Defaults to true. If set to false, Composer will not create a composer.lock file." + }, + "platform-check": { + "type": "boolean", + "description": "Defaults to true. If set to false, Composer will not create and require a platform_check.php file as part of the autoloader bootstrap." } } }, @@ -386,6 +391,10 @@ ], "description": "Options for creating package archives for distribution.", "properties": { + "name": { + "type": "string", + "description": "A base name for archive." + }, "exclude": { "type": "array", "description": "A list of patterns for paths to exclude or include if prefixed with an exclamation mark." @@ -668,6 +677,12 @@ "type": "string" } }, + "default-branch": { + "type": [ + "boolean" + ], + "description": "Internal use only, do not specify this in composer.json. Indicates whether this version is the default branch of the linked VCS repository. Defaults to false." + }, "abandoned": { "type": [ "boolean", @@ -798,6 +813,21 @@ "url": { "type": "string" }, + "canonical": { + "type": "boolean" + }, + "only": { + "type": "array", + "items": { + "type": "string" + } + }, + "exclude": { + "type": "array", + "items": { + "type": "string" + } + }, "options": { "type": "object", "additionalProperties": true @@ -835,6 +865,21 @@ "url": { "type": "string" }, + "canonical": { + "type": "boolean" + }, + "only": { + "type": "array", + "items": { + "type": "string" + } + }, + "exclude": { + "type": "array", + "items": { + "type": "string" + } + }, "no-api": { "type": "boolean" }, @@ -898,6 +943,21 @@ "url": { "type": "string" }, + "canonical": { + "type": "boolean" + }, + "only": { + "type": "array", + "items": { + "type": "string" + } + }, + "exclude": { + "type": "array", + "items": { + "type": "string" + } + }, "options": { "type": "object", "properties": { @@ -927,6 +987,21 @@ }, "url": { "type": "string" + }, + "canonical": { + "type": "boolean" + }, + "only": { + "type": "array", + "items": { + "type": "string" + } + }, + "exclude": { + "type": "array", + "items": { + "type": "string" + } } } }, @@ -946,6 +1021,21 @@ "url": { "type": "string" }, + "canonical": { + "type": "boolean" + }, + "only": { + "type": "array", + "items": { + "type": "string" + } + }, + "exclude": { + "type": "array", + "items": { + "type": "string" + } + }, "vendor-alias": { "type": "string" } @@ -964,6 +1054,21 @@ "package" ] }, + "canonical": { + "type": "boolean" + }, + "only": { + "type": "array", + "items": { + "type": "string" + } + }, + "exclude": { + "type": "array", + "items": { + "type": "string" + } + }, "package": { "oneOf": [ {