jx/internal/resource/schemas/package.jsonschema

27 lines
628 B
Plaintext
Raw Normal View History

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",
2024-05-09 07:39:45 +00:00
"pattern": "^[a-zA-Z0-9][-a-zA-Z0-9+._]+$"
2024-04-09 19:30:05 +00:00
},
"required": {
"description": "version requirement",
"type": "string",
2024-05-09 07:39:45 +00:00
"pattern": "^([><~=]{0,2}[-_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
}
}
}