Fix extension type to include null and object 57/14157/1
authorAllain Legacy <alegacy@redhat.com>
Tue, 4 Feb 2025 13:41:52 +0000 (08:41 -0500)
committerAllain Legacy <alegacy@redhat.com>
Tue, 11 Feb 2025 16:11:07 +0000 (11:11 -0500)
Since extensions are optional fields they can either be of type "null"
or "object" depending on whether the server has provided a value.

Issue-ID: INT-162
Change-Id: I1d6dc1ed7c1e86d23ecdebeb583a544e89b05e50
Signed-off-by: Allain Legacy <alegacy@redhat.com>
test_scripts/O2IMS_Compliance_Test/o2ims_compliance/schemas/ocloud_allfields_properties.json
test_scripts/O2IMS_Compliance_Test/o2ims_compliance/schemas/resourcePool_allfields_properties.json
test_scripts/O2IMS_Compliance_Test/o2ims_compliance/schemas/resourcePool_properties.json
test_scripts/O2IMS_Compliance_Test/o2ims_compliance/schemas/resourcePools_properties.json
test_scripts/O2IMS_Compliance_Test/o2ims_compliance/schemas/resourceTypes_field3_properties.json
test_scripts/O2IMS_Compliance_Test/o2ims_compliance/schemas/resourceTypes_field4_properties.json

index c59b287..1067288 100644 (file)
             "default": "http://128.224.115.23:30205"
         },
         "extensions": {
-            "type": "null",
+            "type": [
+                "null",
+                "object"
+            ],
             "default": null
         }
     },
@@ -34,4 +37,4 @@
         "oCloudId",
         "serviceUri"
     ]
-}
\ No newline at end of file
+}
index d430509..ee0b88b 100644 (file)
             "default": ""
         },
         "extensions": {
-            "type": "null",
+            "type": [
+                "null",
+                "object"
+            ],
             "default": null
         }
     },
@@ -39,4 +42,4 @@
         "oCloudId",
         "resourcePoolId"
     ]
-}
\ No newline at end of file
+}
index 5bd0e1f..40fa0e2 100644 (file)
             "default": []
         },
         "extensions": {
-            "type": "null",
+            "type": [
+                "null",
+                "object"
+            ],
             "default": null
         }
     },
@@ -41,4 +44,4 @@
         "resourcePoolId",
         "oCloudId"
     ]
-}
\ No newline at end of file
+}
index 4841c35..f0a541e 100644 (file)
                 "default": []
             },
             "extensions": {
-                "type": "null",
+                "type": [
+                    "null",
+                    "object"
+                    ],
                 "default": null
             }
         },
@@ -39,4 +42,4 @@
             "oCloudId"
         ]
     }
-}
\ No newline at end of file
+}
index e475216..034346e 100644 (file)
                 "type": "string"
             },
             "extensions": {
-                "type": "null"
+                "type": [
+                    "null",
+                    "object"
+                ]
             }
         },
         "required": [
@@ -37,4 +40,4 @@
         ]
     },
     "examples": []
-}
\ No newline at end of file
+}
index accdc43..c3b5fa5 100644 (file)
                 "type": "string"
             },
             "extensions": {
-                "type": "object"
+                "type": [
+                    "null",
+                    "object"
+                ]
             }
         },
         "required": [