mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 15:24:14 +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_emergency_info_1_t *OpenAPI_emergency_info_1_create(
|
|||
char *pgw_fqdn,
|
||||
OpenAPI_ip_address_1_t *pgw_ip_address,
|
||||
char *smf_instance_id,
|
||||
bool is_epdg_ind,
|
||||
int epdg_ind
|
||||
)
|
||||
{
|
||||
|
|
@ -18,6 +19,7 @@ OpenAPI_emergency_info_1_t *OpenAPI_emergency_info_1_create(
|
|||
emergency_info_1_local_var->pgw_fqdn = pgw_fqdn;
|
||||
emergency_info_1_local_var->pgw_ip_address = pgw_ip_address;
|
||||
emergency_info_1_local_var->smf_instance_id = smf_instance_id;
|
||||
emergency_info_1_local_var->is_epdg_ind = is_epdg_ind;
|
||||
emergency_info_1_local_var->epdg_ind = epdg_ind;
|
||||
|
||||
return emergency_info_1_local_var;
|
||||
|
|
@ -72,7 +74,7 @@ cJSON *OpenAPI_emergency_info_1_convertToJSON(OpenAPI_emergency_info_1_t *emerge
|
|||
}
|
||||
}
|
||||
|
||||
if (emergency_info_1->epdg_ind) {
|
||||
if (emergency_info_1->is_epdg_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "epdgInd", emergency_info_1->epdg_ind) == NULL) {
|
||||
ogs_error("OpenAPI_emergency_info_1_convertToJSON() failed [epdg_ind]");
|
||||
goto end;
|
||||
|
|
@ -88,7 +90,7 @@ OpenAPI_emergency_info_1_t *OpenAPI_emergency_info_1_parseFromJSON(cJSON *emerge
|
|||
OpenAPI_emergency_info_1_t *emergency_info_1_local_var = NULL;
|
||||
cJSON *pgw_fqdn = cJSON_GetObjectItemCaseSensitive(emergency_info_1JSON, "pgwFqdn");
|
||||
|
||||
if (pgw_fqdn) {
|
||||
if (pgw_fqdn) {
|
||||
if (!cJSON_IsString(pgw_fqdn)) {
|
||||
ogs_error("OpenAPI_emergency_info_1_parseFromJSON() failed [pgw_fqdn]");
|
||||
goto end;
|
||||
|
|
@ -98,13 +100,13 @@ OpenAPI_emergency_info_1_t *OpenAPI_emergency_info_1_parseFromJSON(cJSON *emerge
|
|||
cJSON *pgw_ip_address = cJSON_GetObjectItemCaseSensitive(emergency_info_1JSON, "pgwIpAddress");
|
||||
|
||||
OpenAPI_ip_address_1_t *pgw_ip_address_local_nonprim = NULL;
|
||||
if (pgw_ip_address) {
|
||||
if (pgw_ip_address) {
|
||||
pgw_ip_address_local_nonprim = OpenAPI_ip_address_1_parseFromJSON(pgw_ip_address);
|
||||
}
|
||||
|
||||
cJSON *smf_instance_id = cJSON_GetObjectItemCaseSensitive(emergency_info_1JSON, "smfInstanceId");
|
||||
|
||||
if (smf_instance_id) {
|
||||
if (smf_instance_id) {
|
||||
if (!cJSON_IsString(smf_instance_id)) {
|
||||
ogs_error("OpenAPI_emergency_info_1_parseFromJSON() failed [smf_instance_id]");
|
||||
goto end;
|
||||
|
|
@ -113,7 +115,7 @@ OpenAPI_emergency_info_1_t *OpenAPI_emergency_info_1_parseFromJSON(cJSON *emerge
|
|||
|
||||
cJSON *epdg_ind = cJSON_GetObjectItemCaseSensitive(emergency_info_1JSON, "epdgInd");
|
||||
|
||||
if (epdg_ind) {
|
||||
if (epdg_ind) {
|
||||
if (!cJSON_IsBool(epdg_ind)) {
|
||||
ogs_error("OpenAPI_emergency_info_1_parseFromJSON() failed [epdg_ind]");
|
||||
goto end;
|
||||
|
|
@ -124,6 +126,7 @@ OpenAPI_emergency_info_1_t *OpenAPI_emergency_info_1_parseFromJSON(cJSON *emerge
|
|||
pgw_fqdn ? ogs_strdup_or_assert(pgw_fqdn->valuestring) : NULL,
|
||||
pgw_ip_address ? pgw_ip_address_local_nonprim : NULL,
|
||||
smf_instance_id ? ogs_strdup_or_assert(smf_instance_id->valuestring) : NULL,
|
||||
epdg_ind ? true : false,
|
||||
epdg_ind ? epdg_ind->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue