-
Notifications
You must be signed in to change notification settings - Fork 72
Added write-only support to generate #434
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6611fc1
Added write-only as a descriptor, handled similarly to "sensitive"
rainkwan a3d86f4
Added write-only tests to respective test files
rainkwan 7e5a468
Ran linter
rainkwan a02a20f
Merge branch 'main' into rk/writeonlysupport
rainkwan 70fc6a9
Added more Write-Only unit tests for nested blocks and attributes
rainkwan db95a65
Added acceptance testing
rainkwan d272da4
Update internal/schemamd/render.go
rainkwan 5294c4a
Merge branch 'main' into rk/writeonlysupport
rainkwan 1ff5bdf
Added a changelog
rainkwan 28dc9eb
Merge branch 'main' into rk/writeonlysupport
rainkwan 8cfbe85
Fix linter
rainkwan 425fbd3
Merge remote-tracking branch 'origin/rk/writeonlysupport' into rk/wri…
rainkwan d2947df
Chore:: Update golangci-linters
rainkwan 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
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,5 @@ | ||
kind: FEATURES | ||
body: 'generate: Add support for write-only arguments' | ||
time: 2025-02-12T16:58:19.098098-05:00 | ||
custom: | ||
Issue: "434" |
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
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_write_only_attributes.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 | ||
|
||
- `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: | ||
|
||
- `level_two` (Attributes, Write-only) (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: | ||
|
||
- `level_three` (Attributes, Write-only) (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: | ||
|
||
- `level_four_primary` (Attributes, Write-only) (see [below for nested schema](#nestedatt--level_one--level_two--level_three--level_four_primary)) | ||
- `level_four_secondary` (String, Write-only) | ||
|
||
<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: | ||
|
||
- `level_five` (Attributes, Write-only) 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, Write-only) 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: | ||
|
||
- `level_five_string` (String, Write-only) Parent should be level_one.level_two.level_three.level_four_primary.level_five. |
Oops, something went wrong.
Oops, something went wrong.
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.