jx/internal/resource/schemas/user.jsonschema
Matthew Rich 5a49359722
Some checks failed
Lint / golangci-lint (push) Failing after 10m8s
Declarative Tests / test (push) Successful in 54s
add encoder/decoder support for json and yaml
add support for jsonschema verification
2024-04-03 09:54:50 -07:00

40 lines
750 B
Plaintext

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "user",
"description": "A user account",
"type": "object",
"required": [ "name" ],
"properties": {
"name": {
"type": "string"
},
"uid": {
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"group": {
"type": "string"
},
"groups": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"gecos": {
"type": "string",
"description": "User description"
},
"createhome": {
"type": "boolean",
"description": "create user home directory"
},
"shell": {
"type": "string",
"description": "login shell"
}
}
}