Dot Case
Synopsis
Converts strings to dot.case format.
Schema
- dotcase:
field: <ident>
target_field: <string>
fields: <array>
exclude: <array>
description: <text>
if: <script>
ignore_failure: <boolean>
ignore_missing: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
Configuration
The following fields are used to define the processor:
Field | Required | Default | Description |
---|---|---|---|
field | N | - | Single field to convert to dot.case |
target_field | N | Same as field | Target field to store dot.case result |
fields | N | - | Array of fields to convert to dot.case |
exclude | N | - | Array of fields to exclude from conversion |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | Continue processing if conversion fails |
ignore_missing | N | false | Skip processing if referenced field doesn't exist |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
Details
Converts string values to dot.case format by replacing spaces, hyphens, underscores, and other separators with dots, then converting all characters to lowercase. This format is commonly used in configuration files, namespacing, and object notation.
The processor handles various input formats and normalizes them to the consistent dot.case style with lowercase letters separated by dots.
dot.case format uses dots as separators and converts all text to lowercase, resulting in format like "user.name", "api.response.data", or "system.config.value".
The processor preserves the logical word boundaries from the input while standardizing the format for consistent usage in configuration systems or hierarchical naming.
Excessive dots or special characters in the input may result in multiple consecutive dots in the output. The processor does not automatically clean up redundant separators.
Examples
Basic Conversion
Converting field name to dot.case... |
|
converts to dot notation: |
|
Mixed Separators
Normalizing mixed separators to dots... |
|
standardizes all separators to dots: |
|
Configuration Namespace
Creating configuration namespace format... |
|
creates namespace-style identifier: |
|
Multiple Fields
Converting multiple fields to dot.case... |
|
processes all specified fields: |
|