Browse code

Extract NodeDescription to a separate definition

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2017/08/11 09:30:16
Showing 1 changed files
... ...
@@ -2037,22 +2037,7 @@ definitions:
2037 2037
       Spec:
2038 2038
         $ref: "#/definitions/NodeSpec"
2039 2039
       Description:
2040
-        description: |
2041
-          Description encapsulates the properties of the Node as reported by the
2042
-          agent.
2043
-        type: "object"
2044
-        properties:
2045
-          Hostname:
2046
-            type: "string"
2047
-            example: "bf3067039e47"
2048
-          Platform:
2049
-            $ref: "#/definitions/Platform"
2050
-          Resources:
2051
-            $ref: "#/definitions/ResourceObject"
2052
-          Engine:
2053
-            $ref: "#/definitions/EngineDescription"
2054
-          TLSInfo:
2055
-            $ref: "#/definitions/TLSInfo"
2040
+        $ref: "#/definitions/NodeDescription"
2056 2041
       Status:
2057 2042
         $ref: "#/definitions/NodeStatus"
2058 2043
       ManagerStatus:
... ...
@@ -2150,6 +2135,24 @@ definitions:
2150 2150
         Reachability: "reachable"
2151 2151
         Addr: "172.17.0.2:2377"
2152 2152
 
2153
+  NodeDescription:
2154
+    description: |
2155
+      NodeDescription encapsulates the properties of the Node as reported by the
2156
+      agent.
2157
+    type: "object"
2158
+    properties:
2159
+      Hostname:
2160
+        type: "string"
2161
+        example: "bf3067039e47"
2162
+      Platform:
2163
+        $ref: "#/definitions/Platform"
2164
+      Resources:
2165
+        $ref: "#/definitions/ResourceObject"
2166
+      Engine:
2167
+        $ref: "#/definitions/EngineDescription"
2168
+      TLSInfo:
2169
+        $ref: "#/definitions/TLSInfo"
2170
+
2153 2171
   Platform:
2154 2172
     description: |
2155 2173
       Platform represents the platform (Arch/OS).