Skip to content

docs: add state: absent to property clearing examples#389

Merged
josegonzalez merged 1 commit into
mainfrom
323-clearing-the-property-examples-omit-state-absent-across-the-property-tasks
Jul 17, 2026
Merged

docs: add state: absent to property clearing examples#389
josegonzalez merged 1 commit into
mainfrom
323-clearing-the-property-examples-omit-state-absent-across-the-property-tasks

Conversation

@josegonzalez

Copy link
Copy Markdown
Member

The generated "Clearing the " examples omitted state: absent, so copying them into a recipe defaulted the state to present with an empty value and failed validation with setting a state of 'present' is invalid without a value for 'value'. Setting State: StateAbsent on each clearing example makes the generated docs emit state: absent so the snippets validate and apply as written.

Test coverage that would exercise every documented example, both offline validation and end-to-end integration, is tracked separately in #388.

Closes #323.

The generated "Clearing the <property>" examples omitted `state: absent`, so copying them into a recipe defaulted the state to `present` with an empty value and failed validation with `setting a state of 'present' is invalid without a value for 'value'`. Setting `State: StateAbsent` on each clearing example makes the generated docs emit `state: absent` so the snippets validate and apply as written.
@josegonzalez
josegonzalez merged commit 9ed9717 into main Jul 17, 2026
14 checks passed
@josegonzalez
josegonzalez deleted the 323-clearing-the-property-examples-omit-state-absent-across-the-property-tasks branch July 17, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: Clearing the <property> examples omit state: absent across the property tasks

1 participant