2024-04-03 19:27:16 +00:00
|
|
|
{
|
2024-04-09 19:30:05 +00:00
|
|
|
"$id": "package.jsonschema",
|
2024-04-03 19:27:16 +00:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"title": "package",
|
|
|
|
"type": "object",
|
2024-04-09 19:30:05 +00:00
|
|
|
"required": [ "name", "type" ],
|
2024-04-03 19:27:16 +00:00
|
|
|
"properties": {
|
|
|
|
"name": {
|
2024-04-09 19:30:05 +00:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9+.-_]+$"
|
|
|
|
},
|
|
|
|
"required": {
|
|
|
|
"description": "version requirement",
|
|
|
|
"type": "string",
|
2024-04-18 06:16:52 +00:00
|
|
|
"pattern": "^([><~=]{0,1}[-_a-zA-Z0-9+.]+|)$"
|
2024-04-03 19:27:16 +00:00
|
|
|
},
|
|
|
|
"version": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "package type",
|
2024-04-05 17:22:17 +00:00
|
|
|
"enum": [ "rpm", "deb", "yum", "dnf", "apt", "apk", "pip", "go" ]
|
2024-04-03 19:27:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|