Revert "Update docs and add more helpful output to validate command, refs #9782"
This reverts commit 458bd41d8f
.
pull/9912/head
parent
da3d5e3143
commit
41c66b1a2d
|
@ -94,9 +94,7 @@ Out of the box, Composer supports four types:
|
||||||
CMSs like the [SilverStripe installer](https://github.com/silverstripe/silverstripe-installer)
|
CMSs like the [SilverStripe installer](https://github.com/silverstripe/silverstripe-installer)
|
||||||
or full fledged applications distributed as packages. This can for example
|
or full fledged applications distributed as packages. This can for example
|
||||||
be used by IDEs to provide listings of projects to initialize when creating
|
be used by IDEs to provide listings of projects to initialize when creating
|
||||||
a new workspace. Setting the type to `project` also makes the `name` and
|
a new workspace.
|
||||||
`description` fields optional, making it a good choice for closed source
|
|
||||||
projects wishing to use `composer validate`.
|
|
||||||
- **metapackage:** An empty package that contains requirements and will trigger
|
- **metapackage:** An empty package that contains requirements and will trigger
|
||||||
their installation, but contains no files and will not write anything to the
|
their installation, but contains no files and will not write anything to the
|
||||||
filesystem. As such, it does not require a dist or source key to be
|
filesystem. As such, it does not require a dist or source key to be
|
||||||
|
|
|
@ -63,16 +63,6 @@ class ConfigValidator
|
||||||
$json->validateSchema();
|
$json->validateSchema();
|
||||||
} catch (JsonValidationException $e) {
|
} catch (JsonValidationException $e) {
|
||||||
foreach ($e->getErrors() as $message) {
|
foreach ($e->getErrors() as $message) {
|
||||||
if ($message === 'type : The property type is required') {
|
|
||||||
$message .= ' (see https://getcomposer.org/doc/04-schema.md#type)';
|
|
||||||
}
|
|
||||||
if ($message === 'name : The property name is required') {
|
|
||||||
$message .= ' (or set "type" to "project" to remove this requirement)';
|
|
||||||
}
|
|
||||||
if ($message === 'description : The property description is required') {
|
|
||||||
$message .= ' (or set "type" to "project" to remove this requirement)';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($laxValid) {
|
if ($laxValid) {
|
||||||
$publishErrors[] = $message;
|
$publishErrors[] = $message;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue