mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-30 18:18:03 +00:00
Updating data-model default.
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
4
test_scripts/curl/config_uuid_only.json
Normal file
4
test_scripts/curl/config_uuid_only.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"configuration" :
|
||||||
|
{ "uuid": 1 }
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user