Upgrade SBI(Service-based Interface)

* OpenAPI Generator version: 4.3.1 ==> 5.5.1
* Specification : r16.8.0 (20210629)
This commit is contained in:
Sukchan Lee 2021-07-07 17:32:55 +09:00
parent 2aaa8200c2
commit f278d58a69
1914 changed files with 91329 additions and 57361 deletions

View file

@ -9,7 +9,7 @@ OpenAPI_lcs_privacy_t *OpenAPI_lcs_privacy_create(
int reference_id,
OpenAPI_lpi_t *lpi,
char *mtc_provider_information
)
)
{
OpenAPI_lcs_privacy_t *lcs_privacy_local_var = OpenAPI_malloc(sizeof(OpenAPI_lcs_privacy_t));
if (!lcs_privacy_local_var) {
@ -46,37 +46,37 @@ cJSON *OpenAPI_lcs_privacy_convertToJSON(OpenAPI_lcs_privacy_t *lcs_privacy)
item = cJSON_CreateObject();
if (lcs_privacy->af_instance_id) {
if (cJSON_AddStringToObject(item, "afInstanceId", lcs_privacy->af_instance_id) == NULL) {
ogs_error("OpenAPI_lcs_privacy_convertToJSON() failed [af_instance_id]");
goto end;
}
if (cJSON_AddStringToObject(item, "afInstanceId", lcs_privacy->af_instance_id) == NULL) {
ogs_error("OpenAPI_lcs_privacy_convertToJSON() failed [af_instance_id]");
goto end;
}
}
if (lcs_privacy->reference_id) {
if (cJSON_AddNumberToObject(item, "referenceId", lcs_privacy->reference_id) == NULL) {
ogs_error("OpenAPI_lcs_privacy_convertToJSON() failed [reference_id]");
goto end;
}
if (cJSON_AddNumberToObject(item, "referenceId", lcs_privacy->reference_id) == NULL) {
ogs_error("OpenAPI_lcs_privacy_convertToJSON() failed [reference_id]");
goto end;
}
}
if (lcs_privacy->lpi) {
cJSON *lpi_local_JSON = OpenAPI_lpi_convertToJSON(lcs_privacy->lpi);
if (lpi_local_JSON == NULL) {
ogs_error("OpenAPI_lcs_privacy_convertToJSON() failed [lpi]");
goto end;
}
cJSON_AddItemToObject(item, "lpi", lpi_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_lcs_privacy_convertToJSON() failed [lpi]");
goto end;
}
cJSON *lpi_local_JSON = OpenAPI_lpi_convertToJSON(lcs_privacy->lpi);
if (lpi_local_JSON == NULL) {
ogs_error("OpenAPI_lcs_privacy_convertToJSON() failed [lpi]");
goto end;
}
cJSON_AddItemToObject(item, "lpi", lpi_local_JSON);
if (item->child == NULL) {
ogs_error("OpenAPI_lcs_privacy_convertToJSON() failed [lpi]");
goto end;
}
}
if (lcs_privacy->mtc_provider_information) {
if (cJSON_AddStringToObject(item, "mtcProviderInformation", lcs_privacy->mtc_provider_information) == NULL) {
ogs_error("OpenAPI_lcs_privacy_convertToJSON() failed [mtc_provider_information]");
goto end;
}
if (cJSON_AddStringToObject(item, "mtcProviderInformation", lcs_privacy->mtc_provider_information) == NULL) {
ogs_error("OpenAPI_lcs_privacy_convertToJSON() failed [mtc_provider_information]");
goto end;
}
}
end:
@ -88,44 +88,44 @@ OpenAPI_lcs_privacy_t *OpenAPI_lcs_privacy_parseFromJSON(cJSON *lcs_privacyJSON)
OpenAPI_lcs_privacy_t *lcs_privacy_local_var = NULL;
cJSON *af_instance_id = cJSON_GetObjectItemCaseSensitive(lcs_privacyJSON, "afInstanceId");
if (af_instance_id) {
if (!cJSON_IsString(af_instance_id)) {
ogs_error("OpenAPI_lcs_privacy_parseFromJSON() failed [af_instance_id]");
goto end;
}
if (af_instance_id) {
if (!cJSON_IsString(af_instance_id)) {
ogs_error("OpenAPI_lcs_privacy_parseFromJSON() failed [af_instance_id]");
goto end;
}
}
cJSON *reference_id = cJSON_GetObjectItemCaseSensitive(lcs_privacyJSON, "referenceId");
if (reference_id) {
if (!cJSON_IsNumber(reference_id)) {
ogs_error("OpenAPI_lcs_privacy_parseFromJSON() failed [reference_id]");
goto end;
}
if (reference_id) {
if (!cJSON_IsNumber(reference_id)) {
ogs_error("OpenAPI_lcs_privacy_parseFromJSON() failed [reference_id]");
goto end;
}
}
cJSON *lpi = cJSON_GetObjectItemCaseSensitive(lcs_privacyJSON, "lpi");
OpenAPI_lpi_t *lpi_local_nonprim = NULL;
if (lpi) {
lpi_local_nonprim = OpenAPI_lpi_parseFromJSON(lpi);
}
if (lpi) {
lpi_local_nonprim = OpenAPI_lpi_parseFromJSON(lpi);
}
cJSON *mtc_provider_information = cJSON_GetObjectItemCaseSensitive(lcs_privacyJSON, "mtcProviderInformation");
if (mtc_provider_information) {
if (!cJSON_IsString(mtc_provider_information)) {
ogs_error("OpenAPI_lcs_privacy_parseFromJSON() failed [mtc_provider_information]");
goto end;
}
if (mtc_provider_information) {
if (!cJSON_IsString(mtc_provider_information)) {
ogs_error("OpenAPI_lcs_privacy_parseFromJSON() failed [mtc_provider_information]");
goto end;
}
}
lcs_privacy_local_var = OpenAPI_lcs_privacy_create (
af_instance_id ? ogs_strdup_or_assert(af_instance_id->valuestring) : NULL,
reference_id ? reference_id->valuedouble : 0,
lpi ? lpi_local_nonprim : NULL,
mtc_provider_information ? ogs_strdup_or_assert(mtc_provider_information->valuestring) : NULL
);
);
return lcs_privacy_local_var;
end: