mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +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
|
|
@ -8,6 +8,7 @@ OpenAPI_flow_information_t *OpenAPI_flow_information_create(
|
|||
char *flow_description,
|
||||
OpenAPI_eth_flow_description_t *eth_flow_description,
|
||||
char *pack_filt_id,
|
||||
bool is_packet_filter_usage,
|
||||
int packet_filter_usage,
|
||||
char *tos_traffic_class,
|
||||
char *spi,
|
||||
|
|
@ -22,6 +23,7 @@ OpenAPI_flow_information_t *OpenAPI_flow_information_create(
|
|||
flow_information_local_var->flow_description = flow_description;
|
||||
flow_information_local_var->eth_flow_description = eth_flow_description;
|
||||
flow_information_local_var->pack_filt_id = pack_filt_id;
|
||||
flow_information_local_var->is_packet_filter_usage = is_packet_filter_usage;
|
||||
flow_information_local_var->packet_filter_usage = packet_filter_usage;
|
||||
flow_information_local_var->tos_traffic_class = tos_traffic_class;
|
||||
flow_information_local_var->spi = spi;
|
||||
|
|
@ -83,7 +85,7 @@ cJSON *OpenAPI_flow_information_convertToJSON(OpenAPI_flow_information_t *flow_i
|
|||
}
|
||||
}
|
||||
|
||||
if (flow_information->packet_filter_usage) {
|
||||
if (flow_information->is_packet_filter_usage) {
|
||||
if (cJSON_AddBoolToObject(item, "packetFilterUsage", flow_information->packet_filter_usage) == NULL) {
|
||||
ogs_error("OpenAPI_flow_information_convertToJSON() failed [packet_filter_usage]");
|
||||
goto end;
|
||||
|
|
@ -127,7 +129,7 @@ OpenAPI_flow_information_t *OpenAPI_flow_information_parseFromJSON(cJSON *flow_i
|
|||
OpenAPI_flow_information_t *flow_information_local_var = NULL;
|
||||
cJSON *flow_description = cJSON_GetObjectItemCaseSensitive(flow_informationJSON, "flowDescription");
|
||||
|
||||
if (flow_description) {
|
||||
if (flow_description) {
|
||||
if (!cJSON_IsString(flow_description)) {
|
||||
ogs_error("OpenAPI_flow_information_parseFromJSON() failed [flow_description]");
|
||||
goto end;
|
||||
|
|
@ -137,13 +139,13 @@ OpenAPI_flow_information_t *OpenAPI_flow_information_parseFromJSON(cJSON *flow_i
|
|||
cJSON *eth_flow_description = cJSON_GetObjectItemCaseSensitive(flow_informationJSON, "ethFlowDescription");
|
||||
|
||||
OpenAPI_eth_flow_description_t *eth_flow_description_local_nonprim = NULL;
|
||||
if (eth_flow_description) {
|
||||
if (eth_flow_description) {
|
||||
eth_flow_description_local_nonprim = OpenAPI_eth_flow_description_parseFromJSON(eth_flow_description);
|
||||
}
|
||||
|
||||
cJSON *pack_filt_id = cJSON_GetObjectItemCaseSensitive(flow_informationJSON, "packFiltId");
|
||||
|
||||
if (pack_filt_id) {
|
||||
if (pack_filt_id) {
|
||||
if (!cJSON_IsString(pack_filt_id)) {
|
||||
ogs_error("OpenAPI_flow_information_parseFromJSON() failed [pack_filt_id]");
|
||||
goto end;
|
||||
|
|
@ -152,7 +154,7 @@ OpenAPI_flow_information_t *OpenAPI_flow_information_parseFromJSON(cJSON *flow_i
|
|||
|
||||
cJSON *packet_filter_usage = cJSON_GetObjectItemCaseSensitive(flow_informationJSON, "packetFilterUsage");
|
||||
|
||||
if (packet_filter_usage) {
|
||||
if (packet_filter_usage) {
|
||||
if (!cJSON_IsBool(packet_filter_usage)) {
|
||||
ogs_error("OpenAPI_flow_information_parseFromJSON() failed [packet_filter_usage]");
|
||||
goto end;
|
||||
|
|
@ -161,7 +163,7 @@ OpenAPI_flow_information_t *OpenAPI_flow_information_parseFromJSON(cJSON *flow_i
|
|||
|
||||
cJSON *tos_traffic_class = cJSON_GetObjectItemCaseSensitive(flow_informationJSON, "tosTrafficClass");
|
||||
|
||||
if (tos_traffic_class) {
|
||||
if (tos_traffic_class) {
|
||||
if (!cJSON_IsString(tos_traffic_class)) {
|
||||
ogs_error("OpenAPI_flow_information_parseFromJSON() failed [tos_traffic_class]");
|
||||
goto end;
|
||||
|
|
@ -170,7 +172,7 @@ OpenAPI_flow_information_t *OpenAPI_flow_information_parseFromJSON(cJSON *flow_i
|
|||
|
||||
cJSON *spi = cJSON_GetObjectItemCaseSensitive(flow_informationJSON, "spi");
|
||||
|
||||
if (spi) {
|
||||
if (spi) {
|
||||
if (!cJSON_IsString(spi)) {
|
||||
ogs_error("OpenAPI_flow_information_parseFromJSON() failed [spi]");
|
||||
goto end;
|
||||
|
|
@ -179,7 +181,7 @@ OpenAPI_flow_information_t *OpenAPI_flow_information_parseFromJSON(cJSON *flow_i
|
|||
|
||||
cJSON *flow_label = cJSON_GetObjectItemCaseSensitive(flow_informationJSON, "flowLabel");
|
||||
|
||||
if (flow_label) {
|
||||
if (flow_label) {
|
||||
if (!cJSON_IsString(flow_label)) {
|
||||
ogs_error("OpenAPI_flow_information_parseFromJSON() failed [flow_label]");
|
||||
goto end;
|
||||
|
|
@ -189,7 +191,7 @@ OpenAPI_flow_information_t *OpenAPI_flow_information_parseFromJSON(cJSON *flow_i
|
|||
cJSON *flow_direction = cJSON_GetObjectItemCaseSensitive(flow_informationJSON, "flowDirection");
|
||||
|
||||
OpenAPI_flow_direction_e flow_directionVariable;
|
||||
if (flow_direction) {
|
||||
if (flow_direction) {
|
||||
if (!cJSON_IsString(flow_direction)) {
|
||||
ogs_error("OpenAPI_flow_information_parseFromJSON() failed [flow_direction]");
|
||||
goto end;
|
||||
|
|
@ -201,6 +203,7 @@ OpenAPI_flow_information_t *OpenAPI_flow_information_parseFromJSON(cJSON *flow_i
|
|||
flow_description ? ogs_strdup_or_assert(flow_description->valuestring) : NULL,
|
||||
eth_flow_description ? eth_flow_description_local_nonprim : NULL,
|
||||
pack_filt_id ? ogs_strdup_or_assert(pack_filt_id->valuestring) : NULL,
|
||||
packet_filter_usage ? true : false,
|
||||
packet_filter_usage ? packet_filter_usage->valueint : 0,
|
||||
tos_traffic_class ? ogs_strdup_or_assert(tos_traffic_class->valuestring) : NULL,
|
||||
spi ? ogs_strdup_or_assert(spi->valuestring) : NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue