mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30: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
|
|
@ -70,7 +70,7 @@ OpenAPI_route_information_t *OpenAPI_route_information_parseFromJSON(cJSON *rout
|
|||
OpenAPI_route_information_t *route_information_local_var = NULL;
|
||||
cJSON *ipv4_addr = cJSON_GetObjectItemCaseSensitive(route_informationJSON, "ipv4Addr");
|
||||
|
||||
if (ipv4_addr) {
|
||||
if (ipv4_addr) {
|
||||
if (!cJSON_IsString(ipv4_addr)) {
|
||||
ogs_error("OpenAPI_route_information_parseFromJSON() failed [ipv4_addr]");
|
||||
goto end;
|
||||
|
|
@ -79,7 +79,7 @@ OpenAPI_route_information_t *OpenAPI_route_information_parseFromJSON(cJSON *rout
|
|||
|
||||
cJSON *ipv6_addr = cJSON_GetObjectItemCaseSensitive(route_informationJSON, "ipv6Addr");
|
||||
|
||||
if (ipv6_addr) {
|
||||
if (ipv6_addr) {
|
||||
if (!cJSON_IsString(ipv6_addr)) {
|
||||
ogs_error("OpenAPI_route_information_parseFromJSON() failed [ipv6_addr]");
|
||||
goto end;
|
||||
|
|
@ -92,7 +92,6 @@ OpenAPI_route_information_t *OpenAPI_route_information_parseFromJSON(cJSON *rout
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(port_number)) {
|
||||
ogs_error("OpenAPI_route_information_parseFromJSON() failed [port_number]");
|
||||
goto end;
|
||||
|
|
@ -101,6 +100,7 @@ OpenAPI_route_information_t *OpenAPI_route_information_parseFromJSON(cJSON *rout
|
|||
route_information_local_var = OpenAPI_route_information_create (
|
||||
ipv4_addr ? ogs_strdup_or_assert(ipv4_addr->valuestring) : NULL,
|
||||
ipv6_addr ? ogs_strdup_or_assert(ipv6_addr->valuestring) : NULL,
|
||||
|
||||
port_number->valuedouble
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue