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

@ -7,7 +7,7 @@
OpenAPI_ec_restriction_data_wb_t *OpenAPI_ec_restriction_data_wb_create(
int ec_mode_a_restricted,
int ec_mode_b_restricted
)
)
{
OpenAPI_ec_restriction_data_wb_t *ec_restriction_data_wb_local_var = OpenAPI_malloc(sizeof(OpenAPI_ec_restriction_data_wb_t));
if (!ec_restriction_data_wb_local_var) {
@ -39,17 +39,15 @@ cJSON *OpenAPI_ec_restriction_data_wb_convertToJSON(OpenAPI_ec_restriction_data_
item = cJSON_CreateObject();
if (ec_restriction_data_wb->ec_mode_a_restricted) {
if (cJSON_AddBoolToObject(item, "ecModeARestricted", ec_restriction_data_wb->ec_mode_a_restricted) == NULL) {
ogs_error("OpenAPI_ec_restriction_data_wb_convertToJSON() failed [ec_mode_a_restricted]");
goto end;
}
if (cJSON_AddBoolToObject(item, "ecModeARestricted", ec_restriction_data_wb->ec_mode_a_restricted) == NULL) {
ogs_error("OpenAPI_ec_restriction_data_wb_convertToJSON() failed [ec_mode_a_restricted]");
goto end;
}
}
if (ec_restriction_data_wb->ec_mode_b_restricted) {
if (cJSON_AddBoolToObject(item, "ecModeBRestricted", ec_restriction_data_wb->ec_mode_b_restricted) == NULL) {
ogs_error("OpenAPI_ec_restriction_data_wb_convertToJSON() failed [ec_mode_b_restricted]");
goto end;
}
if (cJSON_AddBoolToObject(item, "ecModeBRestricted", ec_restriction_data_wb->ec_mode_b_restricted) == NULL) {
ogs_error("OpenAPI_ec_restriction_data_wb_convertToJSON() failed [ec_mode_b_restricted]");
goto end;
}
end:
@ -61,26 +59,29 @@ OpenAPI_ec_restriction_data_wb_t *OpenAPI_ec_restriction_data_wb_parseFromJSON(c
OpenAPI_ec_restriction_data_wb_t *ec_restriction_data_wb_local_var = NULL;
cJSON *ec_mode_a_restricted = cJSON_GetObjectItemCaseSensitive(ec_restriction_data_wbJSON, "ecModeARestricted");
if (ec_mode_a_restricted) {
if (!cJSON_IsBool(ec_mode_a_restricted)) {
ogs_error("OpenAPI_ec_restriction_data_wb_parseFromJSON() failed [ec_mode_a_restricted]");
goto end;
}
if (ec_mode_a_restricted) {
if (!cJSON_IsBool(ec_mode_a_restricted)) {
ogs_error("OpenAPI_ec_restriction_data_wb_parseFromJSON() failed [ec_mode_a_restricted]");
goto end;
}
}
cJSON *ec_mode_b_restricted = cJSON_GetObjectItemCaseSensitive(ec_restriction_data_wbJSON, "ecModeBRestricted");
if (!ec_mode_b_restricted) {
ogs_error("OpenAPI_ec_restriction_data_wb_parseFromJSON() failed [ec_mode_b_restricted]");
goto end;
}
if (ec_mode_b_restricted) {
if (!cJSON_IsBool(ec_mode_b_restricted)) {
ogs_error("OpenAPI_ec_restriction_data_wb_parseFromJSON() failed [ec_mode_b_restricted]");
goto end;
}
if (!cJSON_IsBool(ec_mode_b_restricted)) {
ogs_error("OpenAPI_ec_restriction_data_wb_parseFromJSON() failed [ec_mode_b_restricted]");
goto end;
}
ec_restriction_data_wb_local_var = OpenAPI_ec_restriction_data_wb_create (
ec_mode_a_restricted ? ec_mode_a_restricted->valueint : 0,
ec_mode_b_restricted ? ec_mode_b_restricted->valueint : 0
);
ec_mode_b_restricted->valueint
);
return ec_restriction_data_wb_local_var;
end: