Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render blocks without specifying if they are required or optional #366

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kangasta
Copy link

This avoids all blocks being rendered as optional in resources implemented with terraform-plugin-framework.

This avoids all blocks being rendered as optional in resources implemented with terraform-plugin-framework.
{"### Optional", "Optional:", childAttributeIsOptional, childBlockIsOptional},
{"### Required Attributes", "Required Attributes:", childAttributeIsRequired, omitChild[*tfjson.SchemaBlockType]},
{"### Optional Attributes", "Optional Attributes:", childAttributeIsOptional, omitChild[*tfjson.SchemaBlockType]},
{"### Blocks", "Blocks:", omitChild[*tfjson.SchemaAttribute], childBlockIsWritable},
{"### Read-Only", "Read-Only:", childAttributeIsReadOnly, childBlockIsReadOnly},
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change could be behind an argument (e.g., --blocks-section) to avoid introducing changes to all depending docs 🤔

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.

None yet

1 participant