mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
Upgrade SBI(Service-based Interface)
* OpenAPI Generator version: 4.3.1 ==> 5.5.1 * Specification : r16.8.0 (20210629)
This commit is contained in:
parent
2aaa8200c2
commit
f278d58a69
1914 changed files with 91329 additions and 57361 deletions
|
|
@ -7,7 +7,7 @@
|
|||
OpenAPI_ipv6_prefix_range_t *OpenAPI_ipv6_prefix_range_create(
|
||||
char *start,
|
||||
char *end
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_ipv6_prefix_range_t *ipv6_prefix_range_local_var = OpenAPI_malloc(sizeof(OpenAPI_ipv6_prefix_range_t));
|
||||
if (!ipv6_prefix_range_local_var) {
|
||||
|
|
@ -41,17 +41,17 @@ cJSON *OpenAPI_ipv6_prefix_range_convertToJSON(OpenAPI_ipv6_prefix_range_t *ipv6
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (ipv6_prefix_range->start) {
|
||||
if (cJSON_AddStringToObject(item, "start", ipv6_prefix_range->start) == NULL) {
|
||||
ogs_error("OpenAPI_ipv6_prefix_range_convertToJSON() failed [start]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "start", ipv6_prefix_range->start) == NULL) {
|
||||
ogs_error("OpenAPI_ipv6_prefix_range_convertToJSON() failed [start]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (ipv6_prefix_range->end) {
|
||||
if (cJSON_AddStringToObject(item, "end", ipv6_prefix_range->end) == NULL) {
|
||||
ogs_error("OpenAPI_ipv6_prefix_range_convertToJSON() failed [end]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "end", ipv6_prefix_range->end) == NULL) {
|
||||
ogs_error("OpenAPI_ipv6_prefix_range_convertToJSON() failed [end]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -63,26 +63,26 @@ OpenAPI_ipv6_prefix_range_t *OpenAPI_ipv6_prefix_range_parseFromJSON(cJSON *ipv6
|
|||
OpenAPI_ipv6_prefix_range_t *ipv6_prefix_range_local_var = NULL;
|
||||
cJSON *start = cJSON_GetObjectItemCaseSensitive(ipv6_prefix_rangeJSON, "start");
|
||||
|
||||
if (start) {
|
||||
if (!cJSON_IsString(start)) {
|
||||
ogs_error("OpenAPI_ipv6_prefix_range_parseFromJSON() failed [start]");
|
||||
goto end;
|
||||
}
|
||||
if (start) {
|
||||
if (!cJSON_IsString(start)) {
|
||||
ogs_error("OpenAPI_ipv6_prefix_range_parseFromJSON() failed [start]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *end = cJSON_GetObjectItemCaseSensitive(ipv6_prefix_rangeJSON, "end");
|
||||
|
||||
if (end) {
|
||||
if (!cJSON_IsString(end)) {
|
||||
ogs_error("OpenAPI_ipv6_prefix_range_parseFromJSON() failed [end]");
|
||||
goto end;
|
||||
}
|
||||
if (end) {
|
||||
if (!cJSON_IsString(end)) {
|
||||
ogs_error("OpenAPI_ipv6_prefix_range_parseFromJSON() failed [end]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
ipv6_prefix_range_local_var = OpenAPI_ipv6_prefix_range_create (
|
||||
start ? ogs_strdup_or_assert(start->valuestring) : NULL,
|
||||
end ? ogs_strdup_or_assert(end->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return ipv6_prefix_range_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue