bullet_list
bullet_list renders a JSON array of scalar values as a Markdown bullet list.
Shape
{
"op": "bullet_list",
"path": "."
}
Behavior
pathselects the array to render.- Each array item is rendered as a Markdown bullet.
- String values are emitted directly.
- Number, boolean, and null values are converted to their JSON text form.
Requirements
pathmust resolve to a JSON array.- Every array item must be a scalar JSON value.
fieldsis not supported for this directive.
Validation
Validation fails when:
- the directive
pathdoes not resolve to an array - any array item resolves to an object or array
- the directive contains unsupported
fields
This directive also participates in coverage validation. Each scalar array item is counted as consumed content.
Example
Input JSON:
[
"red",
"green",
"blue"
]
Plan:
{
"version": 1,
"directives": [
{
"op": "bullet_list",
"path": "."
}
]
}
Output Markdown:
- red
- green
- blue