Skip to content

docs: fix module schema property description for object types - #7049

Open
sundeep8967 wants to merge 1 commit into
canonical:mainfrom
sundeep8967:fix/docs-schema-object-property-description
Open

docs: fix module schema property description for object types#7049
sundeep8967 wants to merge 1 commit into
canonical:mainfrom
sundeep8967:fix/docs-schema-object-property-description

Conversation

@sundeep8967

Copy link
Copy Markdown
Contributor

Problem

When rendering module configuration schema documentation (such as for write_files), module_property.tmpl appended "Each object in <name> list supports the following keys:" to all properties with nested properties, even when the property is a single object (e.g. source), rather than a list of objects.

Solution

  • Updated doc/rtd/templates/module_property.tmpl to distinguish between list types (items containing properties) and single object types.
  • Single object properties now correctly render "The <name> object supports the following keys:".

Fixes #7046

Testing

  • Verified template logic for list of object items vs direct object property specifications.

@github-actions github-actions Bot added the documentation This Pull Request changes documentation label Aug 27, 2026
When rendering schema property documentation, module_property.tmpl
previously appended 'Each object in <name> list supports the following keys:'
to all properties with nested properties, regardless of whether the
property was an array of items or a single object.

Fix module_property.tmpl to distinguish between list types (items)
and single object types (properties/patternProperties directly), rendering
'The <name> object supports the following keys:' for object properties.

Fixes canonicalGH-7046
@sundeep8967
sundeep8967 force-pushed the fix/docs-schema-object-property-description branch from 0fdba37 to a0601f2 Compare September 5, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation This Pull Request changes documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs]: write_files "source" key is not a list

1 participant