jx/internal/resource/schemas/package.jsonschema
Matthew Rich e859ef136c
Some checks failed
Lint / golangci-lint (push) Successful in 9m49s
Declarative Tests / test (push) Failing after 49s
add io filter
2024-04-17 16:49:41 -07:00

27 lines
631 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" ]
}
}
}