add basic schema with all properties

This commit is contained in:
Samuel Lorch 2023-10-10 19:57:04 +02:00
parent 5483f7f39d
commit 8b23444815
26 changed files with 560 additions and 57 deletions

View file

@ -0,0 +1,15 @@
{
"$id": "https://nfsense.net/schema/system/system.schema.json",
"title": "System",
"type": "object",
"properties": {
"users": {
"type": "object",
"additionalProperties": {
"description": "System Settings",
"$ref": "https://nfsense.net/schema/system/user.schema.json"
}
}
},
"required": ["users"]
}

View file

@ -0,0 +1,18 @@
{
"$id": "https://nfsense.net/schema/system/user.schema.json",
"title": "User",
"type": "object",
"properties": {
"comment": {
"type": "string"
},
"hash": {
"type": "string"
},
"salt": {
"type": "string"
}
},
"required": ["hash", "salt"]
}