Commit 6b5432f1 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Update namespace for Helpers

parent ddcaaab0
......@@ -21,7 +21,7 @@ namespace oai {
namespace amf {
namespace api {
using namespace org::openapitools::server::helpers;
using namespace oai::amf::helpers;
using namespace oai::amf::model;
IndividualSubscriptionDocumentApi::IndividualSubscriptionDocumentApi(
......
......@@ -21,7 +21,7 @@ namespace oai {
namespace amf {
namespace api {
using namespace org::openapitools::server::helpers;
using namespace oai::amf::helpers;
using namespace oai::amf::model;
IndividualSubscriptionDocumentApiEventExposure::
......@@ -65,7 +65,7 @@ IndividualSubscriptionDocumentApiEventExposure::handleParsingException(
throw ex;
} catch (nlohmann::detail::exception& e) {
return std::make_pair(Pistache::Http::Code::Bad_Request, e.what());
} catch (org::openapitools::server::helpers::ValidationException& e) {
} catch (oai::amf::helpers::ValidationException& e) {
return std::make_pair(Pistache::Http::Code::Bad_Request, e.what());
}
}
......
......@@ -21,7 +21,7 @@ namespace oai {
namespace amf {
namespace api {
using namespace org::openapitools::server::helpers;
using namespace oai::amf::helpers;
using namespace oai::amf::model;
IndividualUeContextDocumentApi::IndividualUeContextDocumentApi(
......
......@@ -21,7 +21,7 @@ namespace oai {
namespace amf {
namespace api {
using namespace org::openapitools::server::helpers;
using namespace oai::amf::helpers;
N1N2IndividualSubscriptionDocumentApi::N1N2IndividualSubscriptionDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
......
......@@ -23,7 +23,7 @@ namespace oai {
namespace amf {
namespace api {
using namespace org::openapitools::server::helpers;
using namespace oai::amf::helpers;
using namespace oai::amf::model;
N1N2MessageCollectionDocumentApi::N1N2MessageCollectionDocumentApi(
......
......@@ -21,7 +21,7 @@ namespace oai {
namespace amf {
namespace api {
using namespace org::openapitools::server::helpers;
using namespace oai::amf::helpers;
using namespace oai::amf::model;
N1N2SubscriptionsCollectionForIndividualUEContextsDocumentApi::
......
......@@ -21,7 +21,7 @@ namespace oai {
namespace amf {
namespace api {
using namespace org::openapitools::server::helpers;
using namespace oai::amf::helpers;
NonUEN2MessageNotificationIndividualSubscriptionDocumentApi::
NonUEN2MessageNotificationIndividualSubscriptionDocumentApi(
......
......@@ -21,7 +21,7 @@ namespace oai {
namespace amf {
namespace api {
using namespace org::openapitools::server::helpers;
using namespace oai::amf::helpers;
using namespace oai::amf::model;
NonUEN2MessagesCollectionDocumentApi::NonUEN2MessagesCollectionDocumentApi(
......
......@@ -21,7 +21,7 @@ namespace oai {
namespace amf {
namespace api {
using namespace org::openapitools::server::helpers;
using namespace oai::amf::helpers;
using namespace oai::amf::model;
NonUEN2MessagesSubscriptionsCollectionDocumentApi::
......
......@@ -21,7 +21,7 @@ namespace oai {
namespace amf {
namespace api {
using namespace org::openapitools::server::helpers;
using namespace oai::amf::helpers;
using namespace oai::amf::model;
SubscriptionsCollectionDocumentApi::SubscriptionsCollectionDocumentApi(
......
......@@ -16,7 +16,7 @@
namespace oai::amf::api {
using namespace org::openapitools::server::helpers;
using namespace oai::amf::helpers;
using namespace oai::amf::model;
SubscriptionsCollectionDocumentApiEventExposure::
......@@ -52,7 +52,7 @@ SubscriptionsCollectionDocumentApiEventExposure::handleParsingException(
throw ex;
} catch (nlohmann::detail::exception& e) {
return std::make_pair(Pistache::Http::Code::Bad_Request, e.what());
} catch (org::openapitools::server::helpers::ValidationException& e) {
} catch (oai::amf::helpers::ValidationException& e) {
return std::make_pair(Pistache::Http::Code::Bad_Request, e.what());
}
}
......
......@@ -23,7 +23,7 @@ _5GsUserState::_5GsUserState() {}
void _5GsUserState::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ _5GsUserStateInfo::_5GsUserStateInfo() {}
void _5GsUserStateInfo::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -29,7 +29,7 @@ AccessTokenErr::AccessTokenErr() {
void AccessTokenErr::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -33,7 +33,7 @@ AccessTokenReq::AccessTokenReq() {
void AccessTokenReq::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ AccessType::AccessType() {}
void AccessType::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -27,7 +27,7 @@ AmfCreateEventSubscription::AmfCreateEventSubscription() {
void AmfCreateEventSubscription::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -28,7 +28,7 @@ AmfCreatedEventSubscription::AmfCreatedEventSubscription() {
void AmfCreatedEventSubscription::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -30,7 +30,7 @@ AmfEvent::AmfEvent() {
void AmfEvent::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -26,7 +26,7 @@ AmfEventArea::AmfEventArea() {
void AmfEventArea::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -28,7 +28,7 @@ AmfEventMode::AmfEventMode() {
void AmfEventMode::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -29,7 +29,7 @@ AmfEventNotification::AmfEventNotification() {
void AmfEventNotification::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -49,7 +49,7 @@ AmfEventReport::AmfEventReport() {
void AmfEventReport::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -29,7 +29,7 @@ AmfEventState::AmfEventState() {
void AmfEventState::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -42,7 +42,7 @@ AmfEventSubscription::AmfEventSubscription() {
void AmfEventSubscription::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ AmfEventTrigger::AmfEventTrigger() {}
void AmfEventTrigger::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ AmfEventTrigger_anyOf::AmfEventTrigger_anyOf() {}
void AmfEventTrigger_anyOf::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ AmfEventType::AmfEventType() {}
void AmfEventType::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ AmfEventType_anyOf::AmfEventType_anyOf() {}
void AmfEventType_anyOf::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -27,7 +27,7 @@ AmfUpdateEventOptionItem::AmfUpdateEventOptionItem() {
void AmfUpdateEventOptionItem::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ AmfUpdatedEventSubscription::AmfUpdatedEventSubscription() {}
void AmfUpdatedEventSubscription::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ CmInfo::CmInfo() {}
void CmInfo::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ CmState::CmState() {}
void CmState::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ CmState_anyOf::CmState_anyOf() {}
void CmState_anyOf::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -27,7 +27,7 @@ CommunicationFailure::CommunicationFailure() {
void CommunicationFailure::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -27,7 +27,7 @@ Ecgi::Ecgi() {
void Ecgi::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -36,7 +36,7 @@ EutraLocation::EutraLocation() {
void EutraLocation::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -26,7 +26,7 @@ GNbId::GNbId() {
void GNbId::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -37,7 +37,7 @@ GlobalRanNodeId::GlobalRanNodeId() {
void GlobalRanNodeId::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -25,7 +25,7 @@ Guami::Guami() {
void Guami::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -13,7 +13,7 @@
#include "Helpers.h"
#include <regex>
namespace org::openapitools::server::helpers {
namespace oai::amf::helpers {
const std::regex regexRfc3339_date(R"(^(\d{4})\-(\d{2})\-(\d{2})$)");
const std::regex regexRfc3339_date_time(
......@@ -136,4 +136,4 @@ bool fromStringValue(const std::string& inStr, double& value) {
return true;
}
} // namespace org::openapitools::server::helpers
} // namespace oai::amf::helpers
......@@ -25,7 +25,7 @@
#include <vector>
#include <map>
namespace org::openapitools::server::helpers {
namespace oai::amf::helpers {
class ValidationException : public std::runtime_error {
public:
......@@ -127,6 +127,6 @@ bool fromStringValue(
return fromStringValue(inStrings, value);
}
} // namespace org::openapitools::server::helpers
} // namespace oai::amf::helpers
#endif // Helpers_H_
......@@ -25,7 +25,7 @@ HfcNodeId::HfcNodeId() {
void HfcNodeId::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -27,7 +27,7 @@ InvalidParam::InvalidParam() {
void InvalidParam::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ Ipv6Addr::Ipv6Addr() {}
void Ipv6Addr::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -26,7 +26,7 @@ LadnInfo::LadnInfo() {
void LadnInfo::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ LineType::LineType() {}
void LineType::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ LineType_anyOf::LineType_anyOf() {}
void LineType_anyOf::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ LocationFilter::LocationFilter() {}
void LocationFilter::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ LocationFilter_anyOf::LocationFilter_anyOf() {}
void LocationFilter_anyOf::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -39,7 +39,7 @@ N3gaLocation::N3gaLocation() {
void N3gaLocation::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ NFType::NFType() {}
void NFType::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ NFType_anyOf::NFType_anyOf() {}
void NFType_anyOf::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -27,7 +27,7 @@ Ncgi::Ncgi() {
void Ncgi::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -26,7 +26,7 @@ NgApCause::NgApCause() {
void NgApCause::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -33,7 +33,7 @@ NrLocation::NrLocation() {
void NrLocation::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -26,7 +26,7 @@ PlmnId::PlmnId() {
void PlmnId::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -28,7 +28,7 @@ PlmnIdNid::PlmnIdNid() {
void PlmnIdNid::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -34,7 +34,7 @@ PresenceInfo::PresenceInfo() {
void PresenceInfo::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ PresenceState::PresenceState() {}
void PresenceState::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ PresenceState_anyOf::PresenceState_anyOf() {}
void PresenceState_anyOf::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -45,7 +45,7 @@ ProblemDetails::ProblemDetails() {
void ProblemDetails::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ RmInfo::RmInfo() {}
void RmInfo::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ RmState::RmState() {}
void RmState::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ RmState_anyOf::RmState_anyOf() {}
void RmState_anyOf::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -27,7 +27,7 @@ Tai::Tai() {
void Tai::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -29,7 +29,7 @@ TnapId::TnapId() {
void TnapId::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -28,7 +28,7 @@ TwapId::TwapId() {
void TwapId::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ UeReachability::UeReachability() {}
void UeReachability::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ UeReachability_anyOf::UeReachability_anyOf() {}
void UeReachability_anyOf::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -27,7 +27,7 @@ UserLocation::UserLocation() {
void UserLocation::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
......@@ -23,7 +23,7 @@ _5GsUserState_anyOf::_5GsUserState_anyOf() {}
void _5GsUserState_anyOf::validate() const {
std::stringstream msg;
if (!validate(msg)) {
throw org::openapitools::server::helpers::ValidationException(msg.str());
throw oai::amf::helpers::ValidationException(msg.str());
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment