mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 05:40:09 +00:00
SBI updated
- openapi-generator version 5.2.0 - add priority/capacity/load in NFProfile/NFService - add AllowedNfTypes in NFProfile/NFService
This commit is contained in:
parent
1326fc85dc
commit
039b9d0aaa
930 changed files with 7387 additions and 5434 deletions
|
|
@ -7,6 +7,7 @@
|
|||
OpenAPI_atom_t *OpenAPI_atom_create(
|
||||
char *attr,
|
||||
char *value,
|
||||
bool is_negative,
|
||||
int negative
|
||||
)
|
||||
{
|
||||
|
|
@ -16,6 +17,7 @@ OpenAPI_atom_t *OpenAPI_atom_create(
|
|||
}
|
||||
atom_local_var->attr = attr;
|
||||
atom_local_var->value = value;
|
||||
atom_local_var->is_negative = is_negative;
|
||||
atom_local_var->negative = negative;
|
||||
|
||||
return atom_local_var;
|
||||
|
|
@ -52,7 +54,7 @@ cJSON *OpenAPI_atom_convertToJSON(OpenAPI_atom_t *atom)
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (atom->negative) {
|
||||
if (atom->is_negative) {
|
||||
if (cJSON_AddBoolToObject(item, "negative", atom->negative) == NULL) {
|
||||
ogs_error("OpenAPI_atom_convertToJSON() failed [negative]");
|
||||
goto end;
|
||||
|
|
@ -72,7 +74,6 @@ OpenAPI_atom_t *OpenAPI_atom_parseFromJSON(cJSON *atomJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(attr)) {
|
||||
ogs_error("OpenAPI_atom_parseFromJSON() failed [attr]");
|
||||
goto end;
|
||||
|
|
@ -84,7 +85,6 @@ OpenAPI_atom_t *OpenAPI_atom_parseFromJSON(cJSON *atomJSON)
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsString(value)) {
|
||||
ogs_error("OpenAPI_atom_parseFromJSON() failed [value]");
|
||||
goto end;
|
||||
|
|
@ -92,7 +92,7 @@ OpenAPI_atom_t *OpenAPI_atom_parseFromJSON(cJSON *atomJSON)
|
|||
|
||||
cJSON *negative = cJSON_GetObjectItemCaseSensitive(atomJSON, "negative");
|
||||
|
||||
if (negative) {
|
||||
if (negative) {
|
||||
if (!cJSON_IsBool(negative)) {
|
||||
ogs_error("OpenAPI_atom_parseFromJSON() failed [negative]");
|
||||
goto end;
|
||||
|
|
@ -102,6 +102,7 @@ OpenAPI_atom_t *OpenAPI_atom_parseFromJSON(cJSON *atomJSON)
|
|||
atom_local_var = OpenAPI_atom_create (
|
||||
ogs_strdup_or_assert(attr->valuestring),
|
||||
ogs_strdup_or_assert(value->valuestring),
|
||||
negative ? true : false,
|
||||
negative ? negative->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue