Skip to content

Commit

Permalink
update for composer docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYamous committed Nov 30, 2022
1 parent 843347a commit 6872de5
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 72 deletions.
27 changes: 23 additions & 4 deletions composer-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
"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.",
"type": "string"
},
"target-dir": {
"description": "DEPRECATED: Forces the package to be installed into the given subdirectory path. This is used for autoloading PSR-0 packages that do not contain their full path. Use forward slashes for cross-platform compatibility.",
"type": "string"
},
"description": {
"type": "string",
"description": "Short package description."
Expand All @@ -33,6 +29,10 @@
"description": "Homepage URL for the project.",
"format": "uri"
},
"readme": {
"type": "string",
"description": "A relative path to the readme document."
},
"version": {
"type": "string",
"description": "Package version, see https://getcomposer.org/doc/04-schema.md#version for more info on valid schemes."
Expand Down Expand Up @@ -461,6 +461,11 @@
"type": "string",
"description": "URL to the documentation.",
"format": "uri"
},
"rss": {
"type": "string",
"description": "URL to the RSS feed.",
"format": "uri"
}
}
},
Expand All @@ -474,6 +479,20 @@
"abandoned": {
"type": ["boolean", "string"],
"description": "Indicates whether this package has been abandoned, it can be boolean or a package name/URL pointing to a recommended alternative. Defaults to false."
},
"funding": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "The type of funding, or the platform through which funding can be provided, e.g. patreon, opencollective, tidelift or github."
},
"url": {
"type": "string",
"description": "URL to a website with details, and a way to fund the package.",
"format": "uri"
}
}
}
}
}
Loading

0 comments on commit 6872de5

Please sign in to comment.