mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 06:10:11 +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_options_response_t *OpenAPI_options_response_create(
|
||||
char *supported_features
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_options_response_t *options_response_local_var = OpenAPI_malloc(sizeof(OpenAPI_options_response_t));
|
||||
if (!options_response_local_var) {
|
||||
|
|
@ -38,10 +38,10 @@ cJSON *OpenAPI_options_response_convertToJSON(OpenAPI_options_response_t *option
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (options_response->supported_features) {
|
||||
if (cJSON_AddStringToObject(item, "supportedFeatures", options_response->supported_features) == NULL) {
|
||||
ogs_error("OpenAPI_options_response_convertToJSON() failed [supported_features]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "supportedFeatures", options_response->supported_features) == NULL) {
|
||||
ogs_error("OpenAPI_options_response_convertToJSON() failed [supported_features]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -53,16 +53,16 @@ OpenAPI_options_response_t *OpenAPI_options_response_parseFromJSON(cJSON *option
|
|||
OpenAPI_options_response_t *options_response_local_var = NULL;
|
||||
cJSON *supported_features = cJSON_GetObjectItemCaseSensitive(options_responseJSON, "supportedFeatures");
|
||||
|
||||
if (supported_features) {
|
||||
if (!cJSON_IsString(supported_features)) {
|
||||
ogs_error("OpenAPI_options_response_parseFromJSON() failed [supported_features]");
|
||||
goto end;
|
||||
}
|
||||
if (supported_features) {
|
||||
if (!cJSON_IsString(supported_features)) {
|
||||
ogs_error("OpenAPI_options_response_parseFromJSON() failed [supported_features]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
options_response_local_var = OpenAPI_options_response_create (
|
||||
supported_features ? ogs_strdup_or_assert(supported_features->valuestring) : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return options_response_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue