Updating data-model default.

This commit is contained in:
stephb9959
2021-09-30 06:53:10 -07:00
parent 4f74701b89
commit b51981bb1c
3 changed files with 1742 additions and 1738 deletions

2
build
View File

@@ -1 +1 @@
238 240

View File

@@ -9,7 +9,7 @@
#include "Daemon.h" #include "Daemon.h"
namespace OpenWifi { namespace OpenWifi {
static json DefaultUCentralSchema = R"( static json DefaultUCentralSchema = R"(
{ {
"$id": "https://openwrt.org/ucentral.schema.json", "$id": "https://openwrt.org/ucentral.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
@@ -150,16 +150,14 @@ static json DefaultUCentralSchema = R"(
2500, 2500,
5000, 5000,
10000 10000
], ]
"default": 1000
}, },
"duplex": { "duplex": {
"type": "string", "type": "string",
"enum": [ "enum": [
"half", "half",
"full" "full"
], ]
"default": "full"
}, },
"services": { "services": {
"type": "array", "type": "array",
@@ -413,9 +411,9 @@ static json DefaultUCentralSchema = R"(
"maximum": 4050 "maximum": 4050
}, },
"proto": { "proto": {
"decription": "The L2 vlan tag that shall be added (1q,1ad) ", "decription": "The L2 vlan tag that shall be added (1q,1ad) ",
"type": "string", "type": "string",
"enum": [ "enum": [
"802.1ad", "802.1ad",
"802.1q" "802.1q"
], ],
@@ -2150,7 +2148,9 @@ static json DefaultUCentralSchema = R"(
} }
} }
} }
} )"_json; }
)"_json;
class ConfigurationValidator *ConfigurationValidator::instance_ = nullptr; class ConfigurationValidator *ConfigurationValidator::instance_ = nullptr;

View File

@@ -0,0 +1,4 @@
{
"configuration" :
{ "uuid": 1 }
}