mirror of
https://github.com/speatzle/nfsense.git
synced 2025-09-13 15:19:08 +00:00
add basic schema with all properties
This commit is contained in:
parent
5483f7f39d
commit
8b23444815
26 changed files with 560 additions and 57 deletions
15
internal/validation/schema/system/system.schema.json
Normal file
15
internal/validation/schema/system/system.schema.json
Normal 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"]
|
||||
}
|
18
internal/validation/schema/system/user.schema.json
Normal file
18
internal/validation/schema/system/user.schema.json
Normal 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"]
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue