jx/internal/resource/schemas/package.jsonschema
Matthew Rich 0fcd5d991c
Some checks failed
Declarative Tests / test (push) Waiting to run
Lint / golangci-lint (push) Has been cancelled
fix version pattern
2024-04-17 23:16:52 -07:00

27 lines
628 B
Plaintext

{
"$id": "package.jsonschema",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "package",
"type": "object",
"required": [ "name", "type" ],
"properties": {
"name": {
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9+.-_]+$"
},
"required": {
"description": "version requirement",
"type": "string",
"pattern": "^([><~=]{0,1}[-_a-zA-Z0-9+.]+|)$"
},
"version": {
"type": "string"
},
"type": {
"type": "string",
"description": "package type",
"enum": [ "rpm", "deb", "yum", "dnf", "apt", "apk", "pip", "go" ]
}
}
}