{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://pgxn.org/meta/v2/app.schema.json",
"title": "App",
"description": "An App represents an applications, command-line or otherwise.",
"type": "object",
"properties": {
"lang": {
"$ref": "term.schema.json",
"description": "A short string representing the implementation language. Required for apps that need the `'#!{cmd}` shebang line modified before installing."
},
"bin": {
"$ref": "path.schema.json",
"description": "A path pointing to the app binary, which may be generated by the build process."
},
"doc": {
"$ref": "path.schema.json",
"description": "A path pointing to the documentation file for the app, which **SHOULD** be more than a README."
},
"abstract": {
"type": "string",
"description": "A short String value describing the extension.",
"minLength": 1
},
"lib": {
"$ref": "path.schema.json",
"description": "A path pointing a directory of additional files to install, such as support libraries or modules."
},
"man": {
"$ref": "path.schema.json",
"description": "A path pointing to a man page or directory of man pages created by the build process."
},
"html": {
"$ref": "path.schema.json",
"description": "A path pointing to an HTML file or directory of HTML files created by the build process."
}
},
"required": ["bin"],
"patternProperties": { "^[xX]_.": { "description": "Custom key" } },
"additionalProperties": false,
"examples": [
{
"lang": "perl",
"bin": "blib/script/app",
"lib": "blib/lib",
"man": "blib/libdoc",
"html": "blib/libhtml",
"doc": "doc/app.md",
"abstract": "blah blah blah"
},
{
"lang": "python",
"bin": "bin/common/check_unique_constraint.py",
"abstract": "Check that all rows in a partition set are unique for the given columns"
},
{
"bin": "pg_top",
"man": "pg_top.1",
"abstract": "pg_top is 'top' for PostgreSQL"
}
]
}