mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 14:20:09 +00:00
Upgrade SBI(Service-based Interface)
* OpenAPI Generator version: 4.3.1 ==> 5.5.1 * Specification : r16.8.0 (20210629)
This commit is contained in:
parent
2aaa8200c2
commit
f278d58a69
1914 changed files with 91329 additions and 57361 deletions
|
|
@ -7,7 +7,7 @@
|
|||
OpenAPI_additional_access_info_t *OpenAPI_additional_access_info_create(
|
||||
OpenAPI_access_type_e access_type,
|
||||
OpenAPI_rat_type_e rat_type
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_additional_access_info_t *additional_access_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_additional_access_info_t));
|
||||
if (!additional_access_info_local_var) {
|
||||
|
|
@ -44,10 +44,10 @@ cJSON *OpenAPI_additional_access_info_convertToJSON(OpenAPI_additional_access_in
|
|||
}
|
||||
|
||||
if (additional_access_info->rat_type) {
|
||||
if (cJSON_AddStringToObject(item, "ratType", OpenAPI_rat_type_ToString(additional_access_info->rat_type)) == NULL) {
|
||||
ogs_error("OpenAPI_additional_access_info_convertToJSON() failed [rat_type]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "ratType", OpenAPI_rat_type_ToString(additional_access_info->rat_type)) == NULL) {
|
||||
ogs_error("OpenAPI_additional_access_info_convertToJSON() failed [rat_type]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -64,7 +64,7 @@ OpenAPI_additional_access_info_t *OpenAPI_additional_access_info_parseFromJSON(c
|
|||
}
|
||||
|
||||
OpenAPI_access_type_e access_typeVariable;
|
||||
|
||||
|
||||
if (!cJSON_IsString(access_type)) {
|
||||
ogs_error("OpenAPI_additional_access_info_parseFromJSON() failed [access_type]");
|
||||
goto end;
|
||||
|
|
@ -74,18 +74,18 @@ OpenAPI_additional_access_info_t *OpenAPI_additional_access_info_parseFromJSON(c
|
|||
cJSON *rat_type = cJSON_GetObjectItemCaseSensitive(additional_access_infoJSON, "ratType");
|
||||
|
||||
OpenAPI_rat_type_e rat_typeVariable;
|
||||
if (rat_type) {
|
||||
if (!cJSON_IsString(rat_type)) {
|
||||
ogs_error("OpenAPI_additional_access_info_parseFromJSON() failed [rat_type]");
|
||||
goto end;
|
||||
}
|
||||
rat_typeVariable = OpenAPI_rat_type_FromString(rat_type->valuestring);
|
||||
if (rat_type) {
|
||||
if (!cJSON_IsString(rat_type)) {
|
||||
ogs_error("OpenAPI_additional_access_info_parseFromJSON() failed [rat_type]");
|
||||
goto end;
|
||||
}
|
||||
rat_typeVariable = OpenAPI_rat_type_FromString(rat_type->valuestring);
|
||||
}
|
||||
|
||||
additional_access_info_local_var = OpenAPI_additional_access_info_create (
|
||||
access_typeVariable,
|
||||
rat_type ? rat_typeVariable : 0
|
||||
);
|
||||
);
|
||||
|
||||
return additional_access_info_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue