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

@ -35,8 +35,11 @@ OpenAPI_civic_address_t *OpenAPI_civic_address_create(
char *rdbr,
char *rdsubbr,
char *prm,
char *pom
)
char *pom,
char *usage_rules,
char *method,
char *provided_by
)
{
OpenAPI_civic_address_t *civic_address_local_var = OpenAPI_malloc(sizeof(OpenAPI_civic_address_t));
if (!civic_address_local_var) {
@ -73,6 +76,9 @@ OpenAPI_civic_address_t *OpenAPI_civic_address_create(
civic_address_local_var->rdsubbr = rdsubbr;
civic_address_local_var->prm = prm;
civic_address_local_var->pom = pom;
civic_address_local_var->usage_rules = usage_rules;
civic_address_local_var->method = method;
civic_address_local_var->provided_by = provided_by;
return civic_address_local_var;
}
@ -114,6 +120,9 @@ void OpenAPI_civic_address_free(OpenAPI_civic_address_t *civic_address)
ogs_free(civic_address->rdsubbr);
ogs_free(civic_address->prm);
ogs_free(civic_address->pom);
ogs_free(civic_address->usage_rules);
ogs_free(civic_address->method);
ogs_free(civic_address->provided_by);
ogs_free(civic_address);
}
@ -128,220 +137,241 @@ cJSON *OpenAPI_civic_address_convertToJSON(OpenAPI_civic_address_t *civic_addres
item = cJSON_CreateObject();
if (civic_address->country) {
if (cJSON_AddStringToObject(item, "country", civic_address->country) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [country]");
goto end;
}
if (cJSON_AddStringToObject(item, "country", civic_address->country) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [country]");
goto end;
}
}
if (civic_address->a1) {
if (cJSON_AddStringToObject(item, "A1", civic_address->a1) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [a1]");
goto end;
}
if (cJSON_AddStringToObject(item, "A1", civic_address->a1) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [a1]");
goto end;
}
}
if (civic_address->a2) {
if (cJSON_AddStringToObject(item, "A2", civic_address->a2) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [a2]");
goto end;
}
if (cJSON_AddStringToObject(item, "A2", civic_address->a2) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [a2]");
goto end;
}
}
if (civic_address->a3) {
if (cJSON_AddStringToObject(item, "A3", civic_address->a3) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [a3]");
goto end;
}
if (cJSON_AddStringToObject(item, "A3", civic_address->a3) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [a3]");
goto end;
}
}
if (civic_address->a4) {
if (cJSON_AddStringToObject(item, "A4", civic_address->a4) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [a4]");
goto end;
}
if (cJSON_AddStringToObject(item, "A4", civic_address->a4) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [a4]");
goto end;
}
}
if (civic_address->a5) {
if (cJSON_AddStringToObject(item, "A5", civic_address->a5) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [a5]");
goto end;
}
if (cJSON_AddStringToObject(item, "A5", civic_address->a5) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [a5]");
goto end;
}
}
if (civic_address->a6) {
if (cJSON_AddStringToObject(item, "A6", civic_address->a6) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [a6]");
goto end;
}
if (cJSON_AddStringToObject(item, "A6", civic_address->a6) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [a6]");
goto end;
}
}
if (civic_address->prd) {
if (cJSON_AddStringToObject(item, "PRD", civic_address->prd) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [prd]");
goto end;
}
if (cJSON_AddStringToObject(item, "PRD", civic_address->prd) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [prd]");
goto end;
}
}
if (civic_address->pod) {
if (cJSON_AddStringToObject(item, "POD", civic_address->pod) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [pod]");
goto end;
}
if (cJSON_AddStringToObject(item, "POD", civic_address->pod) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [pod]");
goto end;
}
}
if (civic_address->sts) {
if (cJSON_AddStringToObject(item, "STS", civic_address->sts) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [sts]");
goto end;
}
if (cJSON_AddStringToObject(item, "STS", civic_address->sts) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [sts]");
goto end;
}
}
if (civic_address->hno) {
if (cJSON_AddStringToObject(item, "HNO", civic_address->hno) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [hno]");
goto end;
}
if (cJSON_AddStringToObject(item, "HNO", civic_address->hno) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [hno]");
goto end;
}
}
if (civic_address->hns) {
if (cJSON_AddStringToObject(item, "HNS", civic_address->hns) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [hns]");
goto end;
}
if (cJSON_AddStringToObject(item, "HNS", civic_address->hns) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [hns]");
goto end;
}
}
if (civic_address->lmk) {
if (cJSON_AddStringToObject(item, "LMK", civic_address->lmk) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [lmk]");
goto end;
}
if (cJSON_AddStringToObject(item, "LMK", civic_address->lmk) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [lmk]");
goto end;
}
}
if (civic_address->loc) {
if (cJSON_AddStringToObject(item, "LOC", civic_address->loc) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [loc]");
goto end;
}
if (cJSON_AddStringToObject(item, "LOC", civic_address->loc) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [loc]");
goto end;
}
}
if (civic_address->nam) {
if (cJSON_AddStringToObject(item, "NAM", civic_address->nam) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [nam]");
goto end;
}
if (cJSON_AddStringToObject(item, "NAM", civic_address->nam) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [nam]");
goto end;
}
}
if (civic_address->pc) {
if (cJSON_AddStringToObject(item, "PC", civic_address->pc) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [pc]");
goto end;
}
if (cJSON_AddStringToObject(item, "PC", civic_address->pc) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [pc]");
goto end;
}
}
if (civic_address->bld) {
if (cJSON_AddStringToObject(item, "BLD", civic_address->bld) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [bld]");
goto end;
}
if (cJSON_AddStringToObject(item, "BLD", civic_address->bld) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [bld]");
goto end;
}
}
if (civic_address->unit) {
if (cJSON_AddStringToObject(item, "UNIT", civic_address->unit) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [unit]");
goto end;
}
if (cJSON_AddStringToObject(item, "UNIT", civic_address->unit) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [unit]");
goto end;
}
}
if (civic_address->flr) {
if (cJSON_AddStringToObject(item, "FLR", civic_address->flr) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [flr]");
goto end;
}
if (cJSON_AddStringToObject(item, "FLR", civic_address->flr) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [flr]");
goto end;
}
}
if (civic_address->room) {
if (cJSON_AddStringToObject(item, "ROOM", civic_address->room) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [room]");
goto end;
}
if (cJSON_AddStringToObject(item, "ROOM", civic_address->room) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [room]");
goto end;
}
}
if (civic_address->plc) {
if (cJSON_AddStringToObject(item, "PLC", civic_address->plc) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [plc]");
goto end;
}
if (cJSON_AddStringToObject(item, "PLC", civic_address->plc) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [plc]");
goto end;
}
}
if (civic_address->pcn) {
if (cJSON_AddStringToObject(item, "PCN", civic_address->pcn) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [pcn]");
goto end;
}
if (cJSON_AddStringToObject(item, "PCN", civic_address->pcn) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [pcn]");
goto end;
}
}
if (civic_address->pobox) {
if (cJSON_AddStringToObject(item, "POBOX", civic_address->pobox) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [pobox]");
goto end;
}
if (cJSON_AddStringToObject(item, "POBOX", civic_address->pobox) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [pobox]");
goto end;
}
}
if (civic_address->addcode) {
if (cJSON_AddStringToObject(item, "ADDCODE", civic_address->addcode) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [addcode]");
goto end;
}
if (cJSON_AddStringToObject(item, "ADDCODE", civic_address->addcode) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [addcode]");
goto end;
}
}
if (civic_address->seat) {
if (cJSON_AddStringToObject(item, "SEAT", civic_address->seat) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [seat]");
goto end;
}
if (cJSON_AddStringToObject(item, "SEAT", civic_address->seat) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [seat]");
goto end;
}
}
if (civic_address->rd) {
if (cJSON_AddStringToObject(item, "RD", civic_address->rd) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [rd]");
goto end;
}
if (cJSON_AddStringToObject(item, "RD", civic_address->rd) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [rd]");
goto end;
}
}
if (civic_address->rdsec) {
if (cJSON_AddStringToObject(item, "RDSEC", civic_address->rdsec) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [rdsec]");
goto end;
}
if (cJSON_AddStringToObject(item, "RDSEC", civic_address->rdsec) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [rdsec]");
goto end;
}
}
if (civic_address->rdbr) {
if (cJSON_AddStringToObject(item, "RDBR", civic_address->rdbr) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [rdbr]");
goto end;
}
if (cJSON_AddStringToObject(item, "RDBR", civic_address->rdbr) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [rdbr]");
goto end;
}
}
if (civic_address->rdsubbr) {
if (cJSON_AddStringToObject(item, "RDSUBBR", civic_address->rdsubbr) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [rdsubbr]");
goto end;
}
if (cJSON_AddStringToObject(item, "RDSUBBR", civic_address->rdsubbr) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [rdsubbr]");
goto end;
}
}
if (civic_address->prm) {
if (cJSON_AddStringToObject(item, "PRM", civic_address->prm) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [prm]");
goto end;
}
if (cJSON_AddStringToObject(item, "PRM", civic_address->prm) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [prm]");
goto end;
}
}
if (civic_address->pom) {
if (cJSON_AddStringToObject(item, "POM", civic_address->pom) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [pom]");
goto end;
}
if (cJSON_AddStringToObject(item, "POM", civic_address->pom) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [pom]");
goto end;
}
}
if (civic_address->usage_rules) {
if (cJSON_AddStringToObject(item, "usageRules", civic_address->usage_rules) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [usage_rules]");
goto end;
}
}
if (civic_address->method) {
if (cJSON_AddStringToObject(item, "method", civic_address->method) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [method]");
goto end;
}
}
if (civic_address->provided_by) {
if (cJSON_AddStringToObject(item, "providedBy", civic_address->provided_by) == NULL) {
ogs_error("OpenAPI_civic_address_convertToJSON() failed [provided_by]");
goto end;
}
}
end:
@ -353,282 +383,309 @@ OpenAPI_civic_address_t *OpenAPI_civic_address_parseFromJSON(cJSON *civic_addres
OpenAPI_civic_address_t *civic_address_local_var = NULL;
cJSON *country = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "country");
if (country) {
if (!cJSON_IsString(country)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [country]");
goto end;
}
if (country) {
if (!cJSON_IsString(country)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [country]");
goto end;
}
}
cJSON *a1 = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "A1");
if (a1) {
if (!cJSON_IsString(a1)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [a1]");
goto end;
}
if (a1) {
if (!cJSON_IsString(a1)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [a1]");
goto end;
}
}
cJSON *a2 = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "A2");
if (a2) {
if (!cJSON_IsString(a2)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [a2]");
goto end;
}
if (a2) {
if (!cJSON_IsString(a2)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [a2]");
goto end;
}
}
cJSON *a3 = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "A3");
if (a3) {
if (!cJSON_IsString(a3)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [a3]");
goto end;
}
if (a3) {
if (!cJSON_IsString(a3)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [a3]");
goto end;
}
}
cJSON *a4 = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "A4");
if (a4) {
if (!cJSON_IsString(a4)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [a4]");
goto end;
}
if (a4) {
if (!cJSON_IsString(a4)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [a4]");
goto end;
}
}
cJSON *a5 = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "A5");
if (a5) {
if (!cJSON_IsString(a5)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [a5]");
goto end;
}
if (a5) {
if (!cJSON_IsString(a5)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [a5]");
goto end;
}
}
cJSON *a6 = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "A6");
if (a6) {
if (!cJSON_IsString(a6)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [a6]");
goto end;
}
if (a6) {
if (!cJSON_IsString(a6)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [a6]");
goto end;
}
}
cJSON *prd = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "PRD");
if (prd) {
if (!cJSON_IsString(prd)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [prd]");
goto end;
}
if (prd) {
if (!cJSON_IsString(prd)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [prd]");
goto end;
}
}
cJSON *pod = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "POD");
if (pod) {
if (!cJSON_IsString(pod)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [pod]");
goto end;
}
if (pod) {
if (!cJSON_IsString(pod)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [pod]");
goto end;
}
}
cJSON *sts = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "STS");
if (sts) {
if (!cJSON_IsString(sts)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [sts]");
goto end;
}
if (sts) {
if (!cJSON_IsString(sts)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [sts]");
goto end;
}
}
cJSON *hno = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "HNO");
if (hno) {
if (!cJSON_IsString(hno)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [hno]");
goto end;
}
if (hno) {
if (!cJSON_IsString(hno)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [hno]");
goto end;
}
}
cJSON *hns = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "HNS");
if (hns) {
if (!cJSON_IsString(hns)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [hns]");
goto end;
}
if (hns) {
if (!cJSON_IsString(hns)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [hns]");
goto end;
}
}
cJSON *lmk = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "LMK");
if (lmk) {
if (!cJSON_IsString(lmk)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [lmk]");
goto end;
}
if (lmk) {
if (!cJSON_IsString(lmk)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [lmk]");
goto end;
}
}
cJSON *loc = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "LOC");
if (loc) {
if (!cJSON_IsString(loc)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [loc]");
goto end;
}
if (loc) {
if (!cJSON_IsString(loc)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [loc]");
goto end;
}
}
cJSON *nam = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "NAM");
if (nam) {
if (!cJSON_IsString(nam)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [nam]");
goto end;
}
if (nam) {
if (!cJSON_IsString(nam)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [nam]");
goto end;
}
}
cJSON *pc = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "PC");
if (pc) {
if (!cJSON_IsString(pc)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [pc]");
goto end;
}
if (pc) {
if (!cJSON_IsString(pc)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [pc]");
goto end;
}
}
cJSON *bld = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "BLD");
if (bld) {
if (!cJSON_IsString(bld)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [bld]");
goto end;
}
if (bld) {
if (!cJSON_IsString(bld)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [bld]");
goto end;
}
}
cJSON *unit = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "UNIT");
if (unit) {
if (!cJSON_IsString(unit)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [unit]");
goto end;
}
if (unit) {
if (!cJSON_IsString(unit)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [unit]");
goto end;
}
}
cJSON *flr = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "FLR");
if (flr) {
if (!cJSON_IsString(flr)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [flr]");
goto end;
}
if (flr) {
if (!cJSON_IsString(flr)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [flr]");
goto end;
}
}
cJSON *room = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "ROOM");
if (room) {
if (!cJSON_IsString(room)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [room]");
goto end;
}
if (room) {
if (!cJSON_IsString(room)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [room]");
goto end;
}
}
cJSON *plc = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "PLC");
if (plc) {
if (!cJSON_IsString(plc)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [plc]");
goto end;
}
if (plc) {
if (!cJSON_IsString(plc)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [plc]");
goto end;
}
}
cJSON *pcn = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "PCN");
if (pcn) {
if (!cJSON_IsString(pcn)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [pcn]");
goto end;
}
if (pcn) {
if (!cJSON_IsString(pcn)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [pcn]");
goto end;
}
}
cJSON *pobox = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "POBOX");
if (pobox) {
if (!cJSON_IsString(pobox)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [pobox]");
goto end;
}
if (pobox) {
if (!cJSON_IsString(pobox)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [pobox]");
goto end;
}
}
cJSON *addcode = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "ADDCODE");
if (addcode) {
if (!cJSON_IsString(addcode)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [addcode]");
goto end;
}
if (addcode) {
if (!cJSON_IsString(addcode)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [addcode]");
goto end;
}
}
cJSON *seat = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "SEAT");
if (seat) {
if (!cJSON_IsString(seat)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [seat]");
goto end;
}
if (seat) {
if (!cJSON_IsString(seat)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [seat]");
goto end;
}
}
cJSON *rd = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "RD");
if (rd) {
if (!cJSON_IsString(rd)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [rd]");
goto end;
}
if (rd) {
if (!cJSON_IsString(rd)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [rd]");
goto end;
}
}
cJSON *rdsec = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "RDSEC");
if (rdsec) {
if (!cJSON_IsString(rdsec)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [rdsec]");
goto end;
}
if (rdsec) {
if (!cJSON_IsString(rdsec)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [rdsec]");
goto end;
}
}
cJSON *rdbr = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "RDBR");
if (rdbr) {
if (!cJSON_IsString(rdbr)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [rdbr]");
goto end;
}
if (rdbr) {
if (!cJSON_IsString(rdbr)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [rdbr]");
goto end;
}
}
cJSON *rdsubbr = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "RDSUBBR");
if (rdsubbr) {
if (!cJSON_IsString(rdsubbr)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [rdsubbr]");
goto end;
}
if (rdsubbr) {
if (!cJSON_IsString(rdsubbr)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [rdsubbr]");
goto end;
}
}
cJSON *prm = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "PRM");
if (prm) {
if (!cJSON_IsString(prm)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [prm]");
goto end;
}
if (prm) {
if (!cJSON_IsString(prm)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [prm]");
goto end;
}
}
cJSON *pom = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "POM");
if (pom) {
if (!cJSON_IsString(pom)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [pom]");
goto end;
}
if (pom) {
if (!cJSON_IsString(pom)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [pom]");
goto end;
}
}
cJSON *usage_rules = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "usageRules");
if (usage_rules) {
if (!cJSON_IsString(usage_rules)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [usage_rules]");
goto end;
}
}
cJSON *method = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "method");
if (method) {
if (!cJSON_IsString(method)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [method]");
goto end;
}
}
cJSON *provided_by = cJSON_GetObjectItemCaseSensitive(civic_addressJSON, "providedBy");
if (provided_by) {
if (!cJSON_IsString(provided_by)) {
ogs_error("OpenAPI_civic_address_parseFromJSON() failed [provided_by]");
goto end;
}
}
civic_address_local_var = OpenAPI_civic_address_create (
country ? ogs_strdup_or_assert(country->valuestring) : NULL,
@ -661,8 +718,11 @@ OpenAPI_civic_address_t *OpenAPI_civic_address_parseFromJSON(cJSON *civic_addres
rdbr ? ogs_strdup_or_assert(rdbr->valuestring) : NULL,
rdsubbr ? ogs_strdup_or_assert(rdsubbr->valuestring) : NULL,
prm ? ogs_strdup_or_assert(prm->valuestring) : NULL,
pom ? ogs_strdup_or_assert(pom->valuestring) : NULL
);
pom ? ogs_strdup_or_assert(pom->valuestring) : NULL,
usage_rules ? ogs_strdup_or_assert(usage_rules->valuestring) : NULL,
method ? ogs_strdup_or_assert(method->valuestring) : NULL,
provided_by ? ogs_strdup_or_assert(provided_by->valuestring) : NULL
);
return civic_address_local_var;
end: