mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Added the configuration schema for the api_client node type
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
This commit is contained in:
parent
1dea56a6d3
commit
e9be876d36
3 changed files with 55 additions and 0 deletions
|
@ -20,6 +20,7 @@ discriminator:
|
|||
mapping:
|
||||
amqp: nodes/_amqp.yaml
|
||||
api: nodes/_api.yaml
|
||||
api_client: nodes/_api_client.yaml
|
||||
can: nodes/_can.yaml
|
||||
comedi: nodes/_comedi.yaml
|
||||
ethercat: nodes/_ethercat.yaml
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../node_obj.yaml
|
||||
- $ref: api_client.yaml
|
51
doc/openapi/components/schemas/config/nodes/api_client.yaml
Normal file
51
doc/openapi/components/schemas/config/nodes/api_client.yaml
Normal file
|
@ -0,0 +1,51 @@
|
|||
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
|
||||
---
|
||||
|
||||
allOf:
|
||||
- $ref: ../node.yaml
|
||||
- type: object
|
||||
required:
|
||||
- endpoint
|
||||
|
||||
properties:
|
||||
endpoint:
|
||||
type: string
|
||||
format: uri
|
||||
|
||||
ssl_verify:
|
||||
type: boolean
|
||||
description: Verify SSL certificate against local trust store.
|
||||
|
||||
timeout:
|
||||
description: Timeout in seconds for HTTP requests.
|
||||
type: number
|
||||
default: 1.0
|
||||
|
||||
rate:
|
||||
description: Polling rate in Hz for requesting entity updates from broker.
|
||||
type: number
|
||||
default: 1.0
|
||||
|
||||
access_token:
|
||||
type: string
|
||||
description: Send 'Auth-Token' header with every HTTP request.
|
||||
|
||||
in:
|
||||
type: object
|
||||
required:
|
||||
- signals
|
||||
properties:
|
||||
signals:
|
||||
type: array
|
||||
items:
|
||||
$ref: ./signals/api_signal.yaml
|
||||
|
||||
out:
|
||||
type: object
|
||||
required:
|
||||
- signals
|
||||
properties:
|
||||
signals:
|
||||
type: array
|
||||
items:
|
||||
$ref: ./signals/api_signal.yaml
|
Loading…
Add table
Reference in a new issue