-
Notifications
You must be signed in to change notification settings - Fork 78
Add --blocks-section
flag to render blocks without specifying if they are required or optional
#366
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
Open
kangasta
wants to merge
3
commits into
hashicorp:main
Choose a base branch
from
UpCloudLtd:blocks-in-separate-h3
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+904
−31
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
644 changes: 644 additions & 0 deletions
644
.../schema-json/generate/framework_provider_success_all_framework_types_blocks_section.txtar
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
internal/schemamd/testdata/deep_nested_attributes_blocks_section.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
## Schema | ||
|
||
### Required Attributes | ||
|
||
- `level_one` (Attributes) (see [below for nested schema](#nestedatt--level_one)) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Example identifier | ||
|
||
<a id="nestedatt--level_one"></a> | ||
### Nested Schema for `level_one` | ||
|
||
Optional Attributes: | ||
|
||
- `level_two` (Attributes) (see [below for nested schema](#nestedatt--level_one--level_two)) | ||
|
||
<a id="nestedatt--level_one--level_two"></a> | ||
### Nested Schema for `level_one.level_two` | ||
|
||
Optional Attributes: | ||
|
||
- `level_three` (Attributes) (see [below for nested schema](#nestedatt--level_one--level_two--level_three)) | ||
|
||
<a id="nestedatt--level_one--level_two--level_three"></a> | ||
### Nested Schema for `level_one.level_two.level_three` | ||
|
||
Optional Attributes: | ||
|
||
- `level_four_primary` (Attributes) (see [below for nested schema](#nestedatt--level_one--level_two--level_three--level_four_primary)) | ||
- `level_four_secondary` (String) | ||
|
||
<a id="nestedatt--level_one--level_two--level_three--level_four_primary"></a> | ||
### Nested Schema for `level_one.level_two.level_three.level_four_primary` | ||
|
||
Optional Attributes: | ||
|
||
- `level_five` (Attributes) Parent should be level_one.level_two.level_three.level_four_primary. (see [below for nested schema](#nestedatt--level_one--level_two--level_three--level_four_primary--level_five)) | ||
- `level_four_primary_string` (String) Parent should be level_one.level_two.level_three.level_four_primary. | ||
|
||
<a id="nestedatt--level_one--level_two--level_three--level_four_primary--level_five"></a> | ||
### Nested Schema for `level_one.level_two.level_three.level_four_primary.level_five` | ||
|
||
Optional Attributes: | ||
|
||
- `level_five_string` (String) Parent should be level_one.level_two.level_three.level_four_primary.level_five. |
132 changes: 132 additions & 0 deletions
132
internal/schemamd/testdata/framework_types_blocks_section.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
## Schema | ||
|
||
### Optional Attributes | ||
|
||
- `bool_attribute` (Boolean) example bool attribute | ||
- `float64_attribute` (Number) example float64 attribute | ||
- `int64_attribute` (Number) example int64 attribute | ||
- `list_attribute` (List of String) example list attribute | ||
- `map_attribute` (Map of String) example map attribute | ||
- `number_attribute` (Number) example number attribute | ||
- `object_attribute` (Object) example object attribute (see [below for nested schema](#nestedatt--object_attribute)) | ||
- `object_attribute_with_nested_object_attribute` (Object) example object attribute with nested object attribute (see [below for nested schema](#nestedatt--object_attribute_with_nested_object_attribute)) | ||
- `sensitive_bool_attribute` (Boolean, Sensitive) example sensitive bool attribute | ||
- `sensitive_float64_attribute` (Number, Sensitive) example sensitive float64 attribute | ||
- `sensitive_int64_attribute` (Number, Sensitive) example sensitive int64 attribute | ||
- `sensitive_list_attribute` (List of String, Sensitive) example sensitive list attribute | ||
- `sensitive_map_attribute` (Map of String, Sensitive) example sensitive map attribute | ||
- `sensitive_number_attribute` (Number, Sensitive) example sensitive number attribute | ||
- `sensitive_object_attribute` (Object, Sensitive) example sensitive object attribute (see [below for nested schema](#nestedatt--sensitive_object_attribute)) | ||
- `sensitive_set_attribute` (Set of String, Sensitive) example sensitive set attribute | ||
- `sensitive_string_attribute` (String, Sensitive) example sensitive string attribute | ||
- `set_attribute` (Set of String) example set attribute | ||
- `string_attribute` (String) example string attribute | ||
|
||
### Blocks | ||
|
||
- `list_nested_block` (Block List) example list nested block (see [below for nested schema](#nestedblock--list_nested_block)) | ||
- `list_nested_block_sensitive_nested_attribute` (Block List) (see [below for nested schema](#nestedblock--list_nested_block_sensitive_nested_attribute)) | ||
- `set_nested_block` (Block Set) example set nested block (see [below for nested schema](#nestedblock--set_nested_block)) | ||
- `single_nested_block` (Block, Optional) example single nested block (see [below for nested schema](#nestedblock--single_nested_block)) | ||
- `single_nested_block_sensitive_nested_attribute` (Block, Optional) example sensitive single nested block (see [below for nested schema](#nestedblock--single_nested_block_sensitive_nested_attribute)) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `set_nested_block_sensitive_nested_attribute` (Block Set) example sensitive set nested block (see [below for nested schema](#nestedblock--set_nested_block_sensitive_nested_attribute)) | ||
|
||
<a id="nestedatt--object_attribute"></a> | ||
### Nested Schema for `object_attribute` | ||
|
||
Optional Attributes: | ||
|
||
- `object_attribute_attribute` (String) | ||
|
||
|
||
<a id="nestedatt--object_attribute_with_nested_object_attribute"></a> | ||
### Nested Schema for `object_attribute_with_nested_object_attribute` | ||
|
||
Optional Attributes: | ||
|
||
- `nested_object` (Object) (see [below for nested schema](#nestedobjatt--object_attribute_with_nested_object_attribute--nested_object)) | ||
- `object_attribute_attribute` (String) | ||
|
||
<a id="nestedobjatt--object_attribute_with_nested_object_attribute--nested_object"></a> | ||
### Nested Schema for `object_attribute_with_nested_object_attribute.nested_object` | ||
|
||
Optional Attributes: | ||
|
||
- `nested_object_attribute` (String) | ||
|
||
|
||
|
||
<a id="nestedatt--sensitive_object_attribute"></a> | ||
### Nested Schema for `sensitive_object_attribute` | ||
|
||
Optional Attributes: | ||
|
||
- `object_attribute_attribute` (String) | ||
|
||
|
||
<a id="nestedblock--list_nested_block"></a> | ||
### Nested Schema for `list_nested_block` | ||
|
||
Optional Attributes: | ||
|
||
- `list_nested_block_attribute` (String) example list nested block attribute | ||
- `list_nested_block_attribute_with_default` (String) example list nested block attribute with default | ||
|
||
Blocks: | ||
|
||
- `nested_list_block` (Block List) (see [below for nested schema](#nestedblock--list_nested_block--nested_list_block)) | ||
|
||
<a id="nestedblock--list_nested_block--nested_list_block"></a> | ||
### Nested Schema for `list_nested_block.nested_list_block` | ||
|
||
Optional Attributes: | ||
|
||
- `nested_block_string_attribute` (String) example nested block string attribute | ||
|
||
|
||
|
||
<a id="nestedblock--list_nested_block_sensitive_nested_attribute"></a> | ||
### Nested Schema for `list_nested_block_sensitive_nested_attribute` | ||
|
||
Optional Attributes: | ||
|
||
- `list_nested_block_attribute` (String) example list nested block attribute | ||
- `list_nested_block_sensitive_attribute` (String, Sensitive) example sensitive list nested block attribute | ||
|
||
|
||
<a id="nestedblock--set_nested_block"></a> | ||
### Nested Schema for `set_nested_block` | ||
|
||
Optional Attributes: | ||
|
||
- `set_nested_block_attribute` (String) example set nested block attribute | ||
|
||
|
||
<a id="nestedblock--single_nested_block"></a> | ||
### Nested Schema for `single_nested_block` | ||
|
||
Optional Attributes: | ||
|
||
- `single_nested_block_attribute` (String) example single nested block attribute | ||
|
||
|
||
<a id="nestedblock--single_nested_block_sensitive_nested_attribute"></a> | ||
### Nested Schema for `single_nested_block_sensitive_nested_attribute` | ||
|
||
Optional Attributes: | ||
|
||
- `single_nested_block_attribute` (String) example single nested block attribute | ||
- `single_nested_block_sensitive_attribute` (String, Sensitive) example sensitive single nested block attribute | ||
|
||
|
||
<a id="nestedblock--set_nested_block_sensitive_nested_attribute"></a> | ||
### Nested Schema for `set_nested_block_sensitive_nested_attribute` | ||
|
||
Read-Only: | ||
|
||
- `set_nested_block_attribute` (String) example set nested block attribute | ||
- `set_nested_block_sensitive_attribute` (String, Sensitive) example sensitive set nested block attribute |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.