GutenTAG comes with YAML/JSON schema definitions for the generation configuration files (such as example-config.yaml
).
You can find the schema definitions in the folder `gutenTAG/config/schema/'.
The schema can be used to enhance IDEs and editors with syntax highlighting, code completion, and linting features for the GutenTAG configuration files.
The file guten-tag-generation-config.schema.yaml
is the base schema that references the following sub-schemas:
oscillation.guten-tag-generation-config.schema.yaml
for the definition of base oscillations and trends.anomaly.guten-tag-generation-config.schema.yaml
for the definition of anomalies.anomaly-kind.guten-tag-generation-config.schema.yaml
for the definition of anomaly kinds (only used withinanomaly.guten-tag-generation-config.schema.yaml
).formula.guten-tag-generation-config.schema.yaml
for the definition of formula base oscillations (only used withinoscillation.guten-tag-generation-config.schema.yaml
).
-
Install and enable the Red Hat VSCode YAML plugin
-
Add a mapping for files that should be checked against the GutenTAG schema
guten-tag-generation-config.schema.yaml
to your settings. E.g. for theexample-config.yaml
-file included in this repository:{ "yaml.schemas": { "./gutenTAG/config/schema/guten-tag-generation-config.schema.yaml": [ "generation_configs/example-config.yaml" ] } }
- Open the desired file (e.g. the
example-config.yaml
) - In the lower right corner, click on No JSON schema
- In the upcoming dropdown list, select New schema mapping ...
- Select the file
gutenTAG/config/schema/guten-tag-generation-config.schema.yaml
and give this schema a representative name. Hit OK.