Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-13507
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Mar 15, 2024
1 parent 86685f1 commit 794b315
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/RESTAPI/RESTAPI_default_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ namespace OpenWifi {
return BadRequest(RESTAPI::Errors::MissingOrInvalidParameters);
}

if(DefConfig.configuration.empty()) {
return BadRequest(RESTAPI::Errors::MissingOrInvalidParameters);
}

std::string Error;
if (!ValidateUCentralConfiguration(ConfigurationValidator::GetType(DefConfig.platform),
DefConfig.configuration, Error,
Expand Down
2 changes: 1 addition & 1 deletion src/RESTObjects/RESTAPI_GWobjects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ namespace OpenWifi::GWObjects {
field_from_json(Obj, "description", description);
field_from_json(Obj, "created", created);
field_from_json(Obj, "lastModified", lastModified);
field_from_json(Obj, "Platform", platform);
field_from_json(Obj, "platform", platform);
return true;
} catch (const Poco::Exception &E) {
}
Expand Down

0 comments on commit 794b315

Please sign in to comment.