From b2a2064bebcb7afb2b6dc1ecf1c2c59faa9ba004 Mon Sep 17 00:00:00 2001 From: Bostjan Meglic Date: Fri, 6 Oct 2023 10:17:16 +0200 Subject: [PATCH] [AF] Use correct structure when sending modification request Tests were crashing due to AF using the wrong OpenAPI structure, while the SBI library tried to convert a different structure to JSON. Before the added support for nullable fields in OpenAPI documents, both structures were identical. --- tests/af/npcf-build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/af/npcf-build.c b/tests/af/npcf-build.c index 1732070f9..1d1ba9990 100644 --- a/tests/af/npcf-build.c +++ b/tests/af/npcf-build.c @@ -367,7 +367,7 @@ ogs_sbi_request_t *af_npcf_policyauthorization_build_update( OpenAPI_list_t *SubComponentList = NULL; OpenAPI_map_t *SubComponentMap = NULL; - OpenAPI_media_sub_component_t *SubComponent = NULL; + OpenAPI_media_sub_component_rm_t *SubComponent = NULL; OpenAPI_list_t *fDescList = NULL; OpenAPI_list_t *codecList = NULL;