# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
---
type: object
title: Node
properties:

  vectorize:
    type: integer
    default: 1
    description: |
      This setting allows to send multiple samples in a single message to the destination nodes.

      The value of this setting determines how many samples will be combined into one packet.

  hooks:
    $ref: hook_list.yaml

  builtin:
    type: boolean
    default: true
    title: Builtin hook functions
    description: |
      By default, each node and paths has a couple of default hooks attached to them. With this setting the attachment of built-in hooks can be disabled.

  in:
    type: object
    title: Input configuration (received by VILLASnode)
    properties:
      vectorize:
        type: integer
        minimum: 1

      hooks:
        $ref: hook_list.yaml

  out:
    type: object
    title: Output configuration (sent out by VILLASnode)
    properties:

      vectorize:
        type: integer

      hooks:
        $ref: hook_list.yaml