diff --git a/doc/openapi/components/schemas/config/path.yaml b/doc/openapi/components/schemas/config/path.yaml index 6bb9b0847..4aa017380 100644 --- a/doc/openapi/components/schemas/config/path.yaml +++ b/doc/openapi/components/schemas/config/path.yaml @@ -58,8 +58,8 @@ properties: Two modes are currently supported: - - `any``: The path will trigger the path as soon as any of the masked (see `mask`) input nodes received new samples. - - `all``: The path will trigger the path as soon as all input nodes received at least one new sample. + - `any`: The path will trigger the path as soon as any of the masked (see `mask`) input nodes received new samples. + - `all`: The path will trigger the path as soon as all input nodes received at least one new sample. mask: description: | diff --git a/doc/openapi/paths/config.yaml b/doc/openapi/paths/config.yaml index ccf56af8c..1b8e2f656 100644 --- a/doc/openapi/paths/config.yaml +++ b/doc/openapi/paths/config.yaml @@ -10,7 +10,7 @@ get: content: application/json: schema: - $ref: '../openapi.yaml#/components/schemas/Config' + $ref: ../components/schemas/config.yaml examples: example1: value: diff --git a/doc/openapi/paths/node/node@{uuid-or-name}.yaml b/doc/openapi/paths/node/node@{uuid-or-name}.yaml index a58c4291e..ccdea0f0e 100644 --- a/doc/openapi/paths/node/node@{uuid-or-name}.yaml +++ b/doc/openapi/paths/node/node@{uuid-or-name}.yaml @@ -11,6 +11,8 @@ get: description: Success content: application/json: + schema: + $ref: ../../components/schemas/config/node_obj.yaml examples: example1: value: diff --git a/doc/openapi/paths/nodes.yaml b/doc/openapi/paths/nodes.yaml index 603c1fa40..521a0b4f5 100644 --- a/doc/openapi/paths/nodes.yaml +++ b/doc/openapi/paths/nodes.yaml @@ -9,6 +9,10 @@ get: content: application/json: examples: + schema: + type: array + items: + $ref: ../components/schemas/config/node_obj.yaml example1: value: - name: udp_node1 diff --git a/doc/openapi/paths/path/path@{uuid}.yaml b/doc/openapi/paths/path/path@{uuid}.yaml index 04550259c..b2b83d276 100644 --- a/doc/openapi/paths/path/path@{uuid}.yaml +++ b/doc/openapi/paths/path/path@{uuid}.yaml @@ -10,6 +10,8 @@ post: description: Success content: application/json: + schema: + $ref: ../../components/schemas/config/path.yaml examples: example1: value: diff --git a/doc/openapi/paths/paths.yaml b/doc/openapi/paths/paths.yaml index 9a023204e..d73b612be 100644 --- a/doc/openapi/paths/paths.yaml +++ b/doc/openapi/paths/paths.yaml @@ -8,6 +8,10 @@ get: description: Success content: application/json: + schema: + type: array + items: + $ref: ../components/schemas/config/path.yaml examples: example1: value: diff --git a/doc/openapi/paths/restart.yaml b/doc/openapi/paths/restart.yaml index c7b1ef17b..4da89adb3 100644 --- a/doc/openapi/paths/restart.yaml +++ b/doc/openapi/paths/restart.yaml @@ -12,15 +12,15 @@ post: properties: config: oneOf: - - type: string - example: 'http://example.com/path/to/config.json' - title: URL - description: | - An optional path or URI to a new configuration file which - should be loaded after restarting the node. - - The file referenced by the URL must be a [VILLASnode configuration file](#tag/config) - - $ref: '../openapi.yaml#/components/schemas/Config' + - type: string + example: 'http://example.com/path/to/config.json' + title: URL + description: | + An optional path or URI to a new configuration file which + should be loaded after restarting the node. + + The file referenced by the URL must be a [VILLASnode configuration file](#tag/config) + - $ref: ../components/schemas/config.yaml responses: '200': description: Success. The instance has been restarted.