REST level exception handling cleanup
[cps.git] / cps-rest / docs / api / swagger / openapi.yml
index 0c7c83c..56a012f 100755 (executable)
@@ -364,18 +364,28 @@ paths:
           description: Not Found
           content: {}
 components:
-    schemas:
-       Anchor:
-           type: object
-           title: Anchor
-           required:
-              - anchorName
-              - namespace
-              - revision
-           properties:
-               anchorName:
-                   type: string
-               namespace:
-                   type: string
-               revision:
-                   type: string
\ No newline at end of file
+  schemas:
+    ErrorMessage:
+      type: object
+      title: Error
+      properties:
+        status:
+          type: string
+        message:
+          type: string
+        details:
+          type: string
+    Anchor:
+      type: object
+      title: Anchor
+      required:
+        - anchorName
+        - namespace
+        - revision
+      properties:
+        anchorName:
+          type: string
+        namespace:
+          type: string
+        revision:
+          type: string