mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +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
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
OpenAPI_links_value_schema_t *OpenAPI_links_value_schema_create(
|
||||
char *href
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_links_value_schema_t *links_value_schema_local_var = OpenAPI_malloc(sizeof(OpenAPI_links_value_schema_t));
|
||||
if (!links_value_schema_local_var) {
|
||||
|
|
@ -38,10 +38,10 @@ cJSON *OpenAPI_links_value_schema_convertToJSON(OpenAPI_links_value_schema_t *li
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (links_value_schema->href) {
|
||||
if (cJSON_AddStringToObject(item, "href", links_value_schema->href) == NULL) {
|
||||
ogs_error("OpenAPI_links_value_schema_convertToJSON() failed [href]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "href", links_value_schema->href) == NULL) {
|
||||
ogs_error("OpenAPI_links_value_schema_convertToJSON() failed [href]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -53,16 +53,16 @@ OpenAPI_links_value_schema_t *OpenAPI_links_value_schema_parseFromJSON(cJSON *li
|
|||
OpenAPI_links_value_schema_t *links_value_schema_local_var = NULL;
|
||||
cJSON *href = cJSON_GetObjectItemCaseSensitive(links_value_schemaJSON, "href");
|
||||
|
||||
if (href) {
|
||||
if (!cJSON_IsString(href)) {
|
||||
ogs_error("OpenAPI_links_value_schema_parseFromJSON() failed [href]");
|
||||
goto end;
|
||||
}
|
||||
if (href) {
|
||||
if (!cJSON_IsString(href)) {
|
||||
ogs_error("OpenAPI_links_value_schema_parseFromJSON() failed [href]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
links_value_schema_local_var = OpenAPI_links_value_schema_create (
|
||||
href ? ogs_strdup_or_assert(href->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return links_value_schema_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue