- Flows and Trails
- Attestation Types
- Environments
General Guidelines
The general guidelines should be considered best practices for all naming conventions in Kosli. You can adapt them to fit your organization’s needs, but consistency is key. All of our proposed conventions follow these general guidelines: Structure:<element 1> <delimiter> <element 2> <delimiter>…<element N>
Choose delimiter
Choose a delimiter that works for your and stick with it consistently.
For example hyphen
-, underscore _, tilde ~ or dot ..
Avoid mixing delimiters within the same naming scheme.Choose case style for elements
Choose a meaningful case style across elements (e.g., PascalCase, camelCase, snake_case) and use it consistently. Avoid spaces and clashes with delimiters.
Keep it concise
Shorter names are easier to read and remember. Aim for concise but descriptive names.
The rest of this document uses hyphen
- as the delimiter in examples, but you can choose any delimiter that fits your needs.Regular Expression
To help enforce these conventions programmatically, here are sample regular expressions you can use based on your chosen case style. Adjust the regex if you choose a different delimiter.- snake_case
- camelCase
- PascalCase
Example:
element_one-element_two-element_threeIf you want a specific length limit (e.g., max 50 characters), you can add a lookahead at the start of the regex:You can use online regex testers like regex101 to validate and test these expressions.