Naming

From version 1.2 names for manifests appeared in the project. The name is calculated from the file name, if not specified in the body of the manifest. Names are used to communicate between objects through events (usually not directly related to routing)

First

#data/rule-example.yaml
version: v1.1
type: Stub
name: my-stub-rule
rules:
...

Second

#data/my-stub-rule.yaml
version: v1.1
type: Stub
rules:
...

For both manifests, the name my-stub-rule will be parsed. In the first variant, the name is declared in the manifest. In the second variant, it is parsed from the filename.

Note: All dots in the file name will be replaced by dashes when parsing the name. e.x.a.m.p.l.e. => e-x-a-m-p-l-e-

Last updated