jx/internal/resource/schemas/package.schema.json
Matthew Rich a6426da6e1
Some checks failed
Lint / golangci-lint (push) Successful in 9m53s
Declarative Tests / test (push) Failing after 5s
Declarative Tests / build-fedora (push) Successful in 2m12s
Declarative Tests / build-ubuntu-focal (push) Successful in 1m21s
add support for RSA keys/certs
2024-07-17 01:34:57 -07:00

27 lines
629 B
JSON

{
"$id": "package.schema.json",
"$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,2}[-_a-zA-Z0-9+.]+|)$"
},
"version": {
"type": "string"
},
"type": {
"type": "string",
"description": "package type",
"enum": [ "rpm", "deb", "yum", "dnf", "apt", "apk", "pip", "go" ]
}
}
}