1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

openapi: add more OpenAPI specs

This commit is contained in:
Steffen Vogel 2021-11-24 10:32:25 +01:00 committed by Steffen Vogel
parent 4fb8b78b03
commit 88bc8d33d6
72 changed files with 71 additions and 74 deletions

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
type: object
required:
@ -10,6 +9,40 @@ required:
properties:
type:
type: string
description: The format-type
real_precission:
type: integer
default: 17
description: |
Output all real numbers with at most n digits of precision. The valid range for this setting is between 0 and 31 (inclusive), and other values result in an undefined behavior.
By default, the precision is 17, to correctly and losslessly encode all IEEE 754 double precision floating point numbers.
ts_origin:
type: boolean
default: true
description: |
If set, include the origin timestamp in the output.
sequence:
type: boolean
default: true
description: |
If set, include the sequence number in the output.
data:
type: boolean
default: true
description: |
If set, include the data in the output.
offset:
type: boolean
default: true
description: |
If set, include the offset between origin and received timestamp in the output.
discriminator:
propertyName: type

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: line.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: column.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: raw.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../format.yaml
- type: object

View file

@ -1,10 +1,41 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../format.yaml
- type: object
properties:
delimiter:
type: string
indent:
type: number
default: 0
description: |
Pretty-print the result, using newlines between array and object items, and indenting with n spaces.
The valid range for n is between 0 and 31 (inclusive), other values result in an undefined output.
If the settings is not used or is 0, no newlines are inserted between array and object items.
compact:
type: boolean
default: false
description: |
This flag enables a compact representation, i.e. sets the separator between array and object items to "," and between object keys and values to ":".
Without this flag, the corresponding separators are ", " and ": " for more readable output.
ensure_ascii:
type: boolean
default: false
description: |
If this flag is used, the output is guaranteed to consist only of ASCII characters.
This is achieved by escaping all Unicode characters outside the ASCII range.
sort_keys:
type: boolean
default: false
description: |
If this flag is used, all the objects in output are sorted by key.
This is useful e.g. if two JSON texts are diffed or visually compared.
escape_slash:
type: boolean
default: false
description:
Escape the `/` characters in strings with `\/`.

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: json.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: json.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: json.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../format.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../format.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../format.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: column.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../format.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../format.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: line.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: villas_binary.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../hook.yaml
- type: object

View file

@ -89,7 +89,7 @@ discriminator:
signal.v2: nodes/signal_v2.yaml
signal: nodes/signal.yaml
socket: nodes/socket.yaml
stats: nodes/stats.yaml
stats: nodes/stats_node.yaml
temper: nodes/temper.yaml
test_rtt: nodes/test_rtt.yaml
uldaq: nodes/uldaq.yaml

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -1,7 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
allOf:
- $ref: ../node.yaml
- type: object

View file

@ -10,7 +10,7 @@ get:
content:
application/json:
schema:
$ref: '#/components/schemas/Config'
$ref: '../openapi.yaml#/components/schemas/Config'
examples:
example1:
value:

View file

@ -20,7 +20,7 @@ post:
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'
- $ref: '../openapi.yaml#/components/schemas/Config'
responses:
'200':
description: Success. The instance has been restarted.