X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=inline;f=capifcore%2Finternal%2Fgentools%2Fspecificationfixer%2Fspecificationfixer.go;fp=capifcore%2Finternal%2Fgentools%2Fspecificationfixer%2Fspecificationfixer.go;h=4257b653c66b372a00d5de3b34f366648b21e3cd;hb=c2422dba52b7c2fe640ff957137ccf64d2c96753;hp=2efbf4b7e993c4cd678687515ada7339840b7a02;hpb=c956436e747ab021a2593aae4f46fdbc66ece7fb;p=nonrtric%2Fplt%2Fsme.git diff --git a/capifcore/internal/gentools/specificationfixer/specificationfixer.go b/capifcore/internal/gentools/specificationfixer/specificationfixer.go index 2efbf4b..4257b65 100644 --- a/capifcore/internal/gentools/specificationfixer/specificationfixer.go +++ b/capifcore/internal/gentools/specificationfixer/specificationfixer.go @@ -44,6 +44,15 @@ func main() { delete(wildcardSdData, "enum") writeFile("TS29571_CommonData.yaml", m) + + m = getData("TS29222_CAPIF_Security_API.yaml") + components = m["components"] + cMap = components.(map[interface{}]interface{}) + schemas = cMap["schemas"].(map[interface{}]interface{}) + accessTokenReq := schemas["AccessTokenReq"].(map[interface{}]interface{}) + accessTokenReq["type"] = "object" + + writeFile("TS29222_CAPIF_Security_API.yaml", m) } func getData(filename string) map[string]interface{} {