Files
deb-python-dcos/cli/dcoscli/data/universe-schema/package.json
José Armando García Sancio d5366fcbdc dcos-3254 Implement package create
2015-11-11 16:06:46 -08:00

79 lines
2.0 KiB
JSON

{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"scm": {
"type": "string"
},
"maintainer": {
"type": "string"
},
"website": {
"type": "string"
},
"description": {
"type": "string"
},
"framework": {
"type": "boolean",
"default": false,
"description": "True if this package installs a new Mesos framework."
},
"preInstallNotes": {
"type": "string",
"description": "Pre installation notes that would be useful to the user of this package."
},
"postInstallNotes": {
"type": "string",
"description": "Post installation notes that would be useful to the user of this package."
},
"postUninstallNotes": {
"type": "string",
"description": "Post uninstallation notes that would be useful to the user of this package."
},
"tags": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[^\\s]+$"
}
},
"licenses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the license. For example one of [Apache License Version 2.0 | MIT License | BSD License | Proprietary]"
},
"url": {
"type": "string",
"pattern": "((?<=\\()[A-Za-z][A-Za-z0-9\\+\\.\\-]*:([A-Za-z0-9\\.\\-_~:/\\?#\\[\\]@!\\$&'\\(\\)\\*\\+,;=]|%[A-Fa-f0-9]{2})+(?=\\)))|([A-Za-z][A-Za-z0-9\\+\\.\\-]*:([A-Za-z0-9\\.\\-_~:/\\?#\\[\\]@!\\$&'\\(\\)\\*\\+,;=]|%[A-Fa-f0-9]{2})+)",
"description": "The URL where the license can be accessed"
}
},
"additionalProperties": false,
"required": [
"name",
"url"
]
}
}
},
"required": [
"name",
"version",
"maintainer",
"description",
"tags"
],
"additionalProperties": false
}