Skip to main content

Module reserved_suffix

Module reserved_suffix 

Source
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.yaml or .job.yml suffix. Such files name camel job documents (the camel job family), not routes.
is_reserved_document
Returns true if the file name ends with any reserved document suffix: .test.yaml/.test.yml (owned by camel test) or .job.yaml/.job.yml (owned by camel 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.yaml or .test.yml suffix. Such files name camel test documents (the camel test family), not routes.