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

docs: restructured OpenAPI docs (2)

This commit is contained in:
Steffen Vogel 2021-12-06 09:25:55 +01:00
parent c313246ddd
commit e0242dc544
72 changed files with 203 additions and 86 deletions

View file

@ -1,3 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
type: object
title: Format Object
required:

View file

@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
description: |
The payload format which is used to encode and decode exchanged messages.

View file

@ -6,4 +6,4 @@ allOf:
properties:
delimiter:
type: string
- $ref: common.yaml
- $ref: ../format.yaml

View file

@ -38,4 +38,4 @@ allOf:
default: false
description:
Escape the `/` characters in strings with `\/`.
- $ref: common.yaml
- $ref: ../format.yaml

View file

@ -6,4 +6,4 @@ allOf:
properties:
separator:
type: string
- $ref: common.yaml
- $ref: ../format.yaml

View file

@ -6,4 +6,4 @@ allOf:
properties:
delimiter:
type: string
- $ref: common.yaml
- $ref: ../format.yaml

View file

@ -6,4 +6,4 @@ allOf:
properties:
delimiter:
type: string
- $ref: common.yaml
- $ref: ../format.yaml

View file

@ -6,4 +6,4 @@ allOf:
properties:
delimiter:
type: string
- $ref: common.yaml
- $ref: ../format.yaml

View file

@ -6,4 +6,4 @@ allOf:
properties:
delimiter:
type: string
- $ref: common.yaml
- $ref: ../format.yaml

View file

@ -2,16 +2,9 @@
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
type: object
title: Hook
required:
- type
properties:
type:
type: string
enabled:
type: boolean
default: true

View file

@ -0,0 +1,6 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
type: array
items:
$ref: hook_spec.yaml

View file

@ -0,0 +1,38 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
type: object
title: Format Object
required:
- type
properties:
type:
type: string
discriminator:
propertyName: type
mapping:
average: hooks/_average.yaml
cast: hooks/_cast.yaml
decimate: hooks/_decimate.yaml
dp: hooks/_dp.yaml
drop: hooks/_drop.yaml
dump: hooks/_dump.yaml
ebm: hooks/_ebm.yaml
fix: hooks/_fix.yaml
gate: hooks/_gate.yaml
jitter_calc: hooks/_jitter_calc.yaml
limit_rate: hooks/_limit_rate.yaml
limit_value: hooks/_limit_value.yaml
lua: hooks/_lua.yaml
ma: hooks/_ma.yaml
pmu_dft: hooks/_pmu_dft.yaml
pps_ts: hooks/_pps_ts.yaml
print: hooks/_print.yaml
restart: hooks/_restart.yaml
rms: hooks/_rms.yaml
scale: hooks/_scale.yaml
shift_seq: hooks/_shift_seq.yaml
shift_ts: hooks/_shift_ts.yaml
skip_first: hooks/_skip_first.yaml
stats: hooks/_stats.yaml
ts: hooks/_ts.yaml

View file

@ -0,0 +1,33 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
oneOf:
- $ref: hook_obj.yaml
- title: Hook Name
type: string
enum:
- average
- cast
- decimate
- dp
- drop
- dump
- ebm
- fix
- gate
- jitter_calc
- limit_rate
- limit_value
- lua
- ma
- pmu_dft
- pps_ts
- print
- restart
- rms
- scale
- shift_seq
- shift_ts
- skip_first
- stats
- ts

View file

@ -1,36 +0,0 @@
---
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
type: array
items:
oneOf:
- $ref: hook.yaml
- type: string
title: Hook Name
description: Only the hook type is provided. No other settings can be configured.
enum:
- average
- cast
- decimate
- dp
- drop
- dump
- ebm
- fix
- gate
- jitter_calc
- limit_rate
- limit_value
- lua
- ma
- pmu_dft
- pps_ts
- print
- restart
- rms
- scale
- shift_seq
- shift_ts
- skip_first
- stats
- ts

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: average.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: cast.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: decimate.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: dp.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: drop.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: dump.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: ebm.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: fix.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: gate.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: jitter_calc.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: limit_rate.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: limit_value.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: lua.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: ma.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: pmu_dft.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: pps_ts.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: print.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: restart.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: rms.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: scale.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: shift_seq.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: shift_ts.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: skip_first.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: stats.yaml

View file

@ -0,0 +1,3 @@
allOf:
- $ref: ../hook.yaml
- $ref: ts.yaml

View file

@ -8,16 +8,20 @@ properties:
default: 80
title: Listening port
description: |
Listening port for HTTP connections.
The TCP port number on which HTTP & WebSocket server.
ssl_cert:
type: string
title: SSL Certificate Path
description: Path to an SSL certificate
description: |
The public x509 certificate used for server-side SSL encryption.
example: /etc/ssl/certs/mycert.pem
ssl_private_key:
type: string
title: SSL Private Key Path
description: Path to an SSL private key
description: |
The private x509 key used for server-side SSL encryption.
example: /etc/ssl/private/mykey.pem

View file

@ -14,7 +14,7 @@ properties:
The value of this setting determines how many samples will be combined into one packet.
hooks:
$ref: hooklist.yaml
$ref: hook_list.yaml
builtin:
type: boolean
@ -34,7 +34,7 @@ properties:
$ref: signallist.yaml
hooks:
$ref: hooklist.yaml
$ref: hook_list.yaml
out:
type: object
@ -44,7 +44,7 @@ properties:
type: integer
hooks:
$ref: hooklist.yaml
$ref: hook_list.yaml
netem:
$ref: netem.yaml

View file

@ -45,4 +45,4 @@ allOf:
client_key:
default: "/path/to/client.key"
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -6,4 +6,4 @@ allOf:
properties:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -6,4 +6,4 @@ allOf:
properties:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

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

View file

@ -46,4 +46,4 @@ allOf:
A object of key/value pairs of environemnt variables which should be passed to the sub-process in addition to the parent environment.
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -29,4 +29,4 @@ allOf:
```
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -7,4 +7,4 @@ allOf:
format:
$ref: ../format_spec.yaml
- $ref: common.yaml
- $ref: ../node.yaml

View file

@ -86,4 +86,4 @@ properties:
When this flag is set, the original sequence number from the source node will be used when multiplexing the nodes.
hooks:
$ref: hooklist.yaml
$ref: hook_list.yaml