CloudCannon Configuration (Snippets Definitions)
Supporting configuration file for CloudCannon containing Snippets Definitions
| Type | object |
|---|---|
| File match |
cloudcannon.snippets-definitions.yml
cloudcannon.snippets-definitions.yaml
cloudcannon.snippets-definitions.json
*.cloudcannon.snippets-definitions.yml
*.cloudcannon.snippets-definitions.yaml
*.cloudcannon.snippets-definitions.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/cloudcannon-configuration-snippets-definitions/latest.json |
| Source | https://github.com/cloudcannon/configuration-types/releases/latest/download/cloudcannon-snippets-definitions.schema.json |
Validate with Lintel
npx @lintel/lintel check
Type:
object
Definitions
type.snippet-definition-value
type.snippet-format | type.snippet-model | type.snippet-model[] | type.snippet-definition-select-value[] | string | number | boolean | string[]
A reusable value that can be referenced in snippet templates via { ref: "key" } or { spread_ref: "key" }.
type.snippet-format
object
root_boundary
object
2 nested properties
start
string
end
string
root_value_boundary
object
2 nested properties
start
string
end
string
root_value_boundary_optional
Record<string, boolean>
root_value_delimiter
string
root_pair_delimiter
string[]
remove_empty_root_boundary
boolean
object_boundary
object
2 nested properties
start
string
end
string
object_value_delimiter
string
object_pair_delimiter
string
array_boundary
object
2 nested properties
start
string
end
string
array_delimiter
string
string_boundary
string[]
string_escape_character
string
allow_booleans
boolean
allow_numbers
boolean
allow_implied_values
boolean
allow_null
boolean
forbidden_tokens
string[]
allowed_string_cases
object
5 nested properties
any
boolean
leading_upper
boolean
leading_lower
boolean
lower
boolean
upper
boolean
type.snippet-model
object
source_key
string
editor_key
string
remove_empty
boolean
optional
boolean
type
string
allowed_values
array
implied_boolean
boolean
default
type.snippet-definition-select-value
object
A value option for select inputs, typically used in language lists.
value
string | number | boolean
required
The value for this option.
name
string
The display name for this option.