Skip to content

Commit

Permalink
Enhancement: Update schema.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ergebnis-bot authored and localheinz committed Aug 16, 2020
1 parent 353d42d commit 2881687
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 4 deletions.
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
109 changes: 107 additions & 2 deletions resource/schema.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "https://json-schema.org/draft-04/schema#",
"name": "Package",
"type": "object",
"additionalProperties": true,
"required": [],
"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.",
Expand Down Expand Up @@ -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."
}
}
},
Expand Down Expand Up @@ -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."
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -927,6 +987,21 @@
},
"url": {
"type": "string"
},
"canonical": {
"type": "boolean"
},
"only": {
"type": "array",
"items": {
"type": "string"
}
},
"exclude": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
Expand All @@ -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"
}
Expand All @@ -964,6 +1054,21 @@
"package"
]
},
"canonical": {
"type": "boolean"
},
"only": {
"type": "array",
"items": {
"type": "string"
}
},
"exclude": {
"type": "array",
"items": {
"type": "string"
}
},
"package": {
"oneOf": [
{
Expand Down

0 comments on commit 2881687

Please sign in to comment.