Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
7abbfab6
Commit
7abbfab6
authored
Sep 09, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix openapi cause
parent
03ad3782
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
+18
-6
src/api-server/model/Cause.cpp
src/api-server/model/Cause.cpp
+10
-1
src/api-server/model/Cause.h
src/api-server/model/Cause.h
+3
-0
src/api-server/model/SmContextReleaseData.cpp
src/api-server/model/SmContextReleaseData.cpp
+2
-2
src/api-server/model/SmContextReleaseData.h
src/api-server/model/SmContextReleaseData.h
+3
-3
No files found.
src/api-server/model/Cause.cpp
View file @
7abbfab6
...
@@ -25,11 +25,20 @@ void Cause::validate() {
...
@@ -25,11 +25,20 @@ void Cause::validate() {
// TODO: implement validation
// TODO: implement validation
}
}
std
::
string
Cause
::
getValue
()
const
{
return
cause
;
}
void
Cause
::
setValue
(
const
std
::
string
&
value
)
{
cause
=
value
;
}
void
to_json
(
nlohmann
::
json
&
j
,
const
Cause
&
o
)
{
void
to_json
(
nlohmann
::
json
&
j
,
const
Cause
&
o
)
{
j
=
nlohmann
::
json
();
j
=
nlohmann
::
json
();
}
}
void
from_json
(
const
nlohmann
::
json
&
j
,
Cause
&
o
)
{}
void
from_json
(
const
nlohmann
::
json
&
j
,
Cause
&
o
)
{
j
.
get_to
(
o
.
cause
);
}
}
// namespace model
}
// namespace model
}
// namespace smf_server
}
// namespace smf_server
...
...
src/api-server/model/Cause.h
View file @
7abbfab6
...
@@ -45,11 +45,14 @@ class Cause {
...
@@ -45,11 +45,14 @@ class Cause {
/////////////////////////////////////////////
/////////////////////////////////////////////
/// Cause members
/// Cause members
std
::
string
getValue
()
const
;
void
setValue
(
const
std
::
string
&
value
);
friend
void
to_json
(
nlohmann
::
json
&
j
,
const
Cause
&
o
);
friend
void
to_json
(
nlohmann
::
json
&
j
,
const
Cause
&
o
);
friend
void
from_json
(
const
nlohmann
::
json
&
j
,
Cause
&
o
);
friend
void
from_json
(
const
nlohmann
::
json
&
j
,
Cause
&
o
);
protected:
protected:
std
::
string
cause
;
};
};
}
// namespace model
}
// namespace model
...
...
src/api-server/model/SmContextReleaseData.cpp
View file @
7abbfab6
...
@@ -97,10 +97,10 @@ void from_json(const nlohmann::json& j, SmContextReleaseData& o) {
...
@@ -97,10 +97,10 @@ void from_json(const nlohmann::json& j, SmContextReleaseData& o) {
}
}
}
}
Cause
SmContextReleaseData
::
getCause
()
const
{
std
::
string
SmContextReleaseData
::
getCause
()
const
{
return
m_Cause
;
return
m_Cause
;
}
}
void
SmContextReleaseData
::
setCause
(
Cause
const
&
value
)
{
void
SmContextReleaseData
::
setCause
(
std
::
string
const
&
value
)
{
m_Cause
=
value
;
m_Cause
=
value
;
m_CauseIsSet
=
true
;
m_CauseIsSet
=
true
;
}
}
...
...
src/api-server/model/SmContextReleaseData.h
View file @
7abbfab6
...
@@ -47,8 +47,8 @@ class SmContextReleaseData {
...
@@ -47,8 +47,8 @@ class SmContextReleaseData {
/// <summary>
/// <summary>
///
///
/// </summary>
/// </summary>
Cause
getCause
()
const
;
std
::
string
getCause
()
const
;
void
setCause
(
Cause
const
&
value
);
void
setCause
(
std
::
string
const
&
value
);
bool
causeIsSet
()
const
;
bool
causeIsSet
()
const
;
void
unsetCause
();
void
unsetCause
();
/// <summary>
/// <summary>
...
@@ -119,7 +119,7 @@ class SmContextReleaseData {
...
@@ -119,7 +119,7 @@ class SmContextReleaseData {
friend
void
from_json
(
const
nlohmann
::
json
&
j
,
SmContextReleaseData
&
o
);
friend
void
from_json
(
const
nlohmann
::
json
&
j
,
SmContextReleaseData
&
o
);
protected:
protected:
Cause
m_Cause
;
std
::
string
m_Cause
;
bool
m_CauseIsSet
;
bool
m_CauseIsSet
;
NgApCause
m_NgApCause
;
NgApCause
m_NgApCause
;
bool
m_NgApCauseIsSet
;
bool
m_NgApCauseIsSet
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment