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
cb93eb96
Commit
cb93eb96
authored
Sep 09, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix_openapi_cause' into 'develop'
Fix openapi cause See merge request oai/cn5g/oai-cn5g-smf!148
parents
03ad3782
7abbfab6
Changes
4
Hide 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 @
cb93eb96
...
...
@@ -25,11 +25,20 @@ void Cause::validate() {
// 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
)
{
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 smf_server
...
...
src/api-server/model/Cause.h
View file @
cb93eb96
...
...
@@ -45,11 +45,14 @@ class Cause {
/////////////////////////////////////////////
/// Cause members
std
::
string
getValue
()
const
;
void
setValue
(
const
std
::
string
&
value
);
friend
void
to_json
(
nlohmann
::
json
&
j
,
const
Cause
&
o
);
friend
void
from_json
(
const
nlohmann
::
json
&
j
,
Cause
&
o
);
protected:
std
::
string
cause
;
};
}
// namespace model
...
...
src/api-server/model/SmContextReleaseData.cpp
View file @
cb93eb96
...
...
@@ -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
;
}
void
SmContextReleaseData
::
setCause
(
Cause
const
&
value
)
{
void
SmContextReleaseData
::
setCause
(
std
::
string
const
&
value
)
{
m_Cause
=
value
;
m_CauseIsSet
=
true
;
}
...
...
src/api-server/model/SmContextReleaseData.h
View file @
cb93eb96
...
...
@@ -47,8 +47,8 @@ class SmContextReleaseData {
/// <summary>
///
/// </summary>
Cause
getCause
()
const
;
void
setCause
(
Cause
const
&
value
);
std
::
string
getCause
()
const
;
void
setCause
(
std
::
string
const
&
value
);
bool
causeIsSet
()
const
;
void
unsetCause
();
/// <summary>
...
...
@@ -119,7 +119,7 @@ class SmContextReleaseData {
friend
void
from_json
(
const
nlohmann
::
json
&
j
,
SmContextReleaseData
&
o
);
protected:
Cause
m_Cause
;
std
::
string
m_Cause
;
bool
m_CauseIsSet
;
NgApCause
m_NgApCause
;
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