2024-04-03 16:54:50 +00:00
|
|
|
{
|
2024-04-09 19:30:05 +00:00
|
|
|
"$id": "user.jsonschema",
|
2024-04-03 16:54:50 +00:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"title": "user",
|
|
|
|
"description": "A user account",
|
|
|
|
"type": "object",
|
|
|
|
"required": [ "name" ],
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
2024-04-09 19:30:05 +00:00
|
|
|
"type": "string",
|
|
|
|
"pattern": "^[a-z]([-_a-z0-9]{0,31})$"
|
2024-04-03 16:54:50 +00:00
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|