Expand description
Reserved document-suffix predicates (ADR-0062 single suffix rule).
This is the single definition of the reserved-suffix rule, defined here
in camel-api (below the lint/runtime hex boundary) so that both
camel-dsl (runtime route discovery) and camel-lint consume one
definition. camel_dsl::discovery re-exports these predicates, so
existing camel_dsl::discovery::* import paths keep resolving to the
same functions.
Functionsยง
- is_
job_ document - Returns true if the file name ends with the reserved
.job.yamlor.job.ymlsuffix. Such files name camel job documents (thecamel jobfamily), not routes. - is_
reserved_ document - Returns true if the file name ends with any reserved document suffix:
.test.yaml/.test.yml(owned bycamel test) or.job.yaml/.job.yml(owned bycamel job). Such files are never routes; route discovery skips them under wildcard globs and errors on literal naming. - is_
test_ document - Returns true if the file name ends with the reserved
.test.yamlor.test.ymlsuffix. Such files name camel test documents (thecamel testfamily), not routes.