kaboom/config/schema.yaml

88 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2024-07-26 11:33:38 +03:00
$schema: http://json-schema.org/draft-06/schema
type: object
additionalProperties: false
properties:
kafka:
$ref: '#/definitions/Kafka'
rules:
$ref: '#/definitions/Rules'
required:
- kafka
- rules
definitions:
Kafka:
type: object
additionalProperties:
type: '#/definitions/KafkaConfig'
KafkaConfig:
type: object
additionalProperties: false
properties:
brokers:
type: array
items:
type: string
client_id:
type: string
version:
type: string
timeout:
type: string
required:
- brokers
- client_id
- version
title: Kafka1Class
Rules:
type: object
additionalProperties:
type: '#/definitions/Rule'
Rule:
type: object
additionalProperties: false
properties:
in:
type: array
items:
$ref: '#/definitions/In'
out:
type: array
items:
$ref: '#/definitions/Out'
required:
- in
- out
In:
type: object
additionalProperties: false
properties:
kafka:
type: string
topic:
type: array
items:
type: string
group_name:
type: string
transformation:
type: string
required:
- kafka
- topic
Out:
type: object
additionalProperties: false
properties:
kafka:
type: string
topic:
type: array
items:
type: string
required:
- kafka
- topic