Skip to content

Commit

Permalink
Fixes #4610
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Carvalho committed Nov 21, 2015
1 parent f2b0e22 commit 320533b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions res/composer-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,10 @@
"items": {
"type": "string"
}
},
"abandoned": {
"type": ["boolean"],
"description": "Indicates whether this package has been abandoned. Defaults to false."
}
}
}
6 changes: 6 additions & 0 deletions tests/Composer/Test/Json/ComposerSchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ public function testRequiredProperties()
), $this->check($json));
}

public function testOptionalAbandonedProperty()
{
$json = '{"name": "name", "description": "description", "abandoned": true}';
$this->assertTrue($this->check($json));
}

public function testMinimumStabilityValues()
{
$json = '{ "name": "vendor/package", "description": "generic description", "minimum-stability": "" }';
Expand Down

0 comments on commit 320533b

Please sign in to comment.