linters - AZS004 complete enum lists to PossibleValuesFor<Enum>() 3/4 - services h-n (hdinsight ... network) - #33208
linters - AZS004 complete enum lists to PossibleValuesFor<Enum>() 3/4 - services h-n (hdinsight ... network)#33208katbyte wants to merge 2 commits into
Conversation
…ValuesFor<Enum>() 3/4 - services h-n (hdinsight ... network)
PR Guide SuggestionsResult for commit Linter output
See the Provider Contribution Guidelines for the provider's schema conventions. |
catriona-m
left a comment
There was a problem hiding this comment.
Thanks @katbyte - I found one property where a value is getting dropped, otherwise this looks good.
| Type: pluginsdk.TypeString, | ||
| Optional: true, | ||
| Computed: true, | ||
| ValidateFunc: validation.StringInSlice(servers.PossibleValuesForServerVersion(), false), |
There was a problem hiding this comment.
the validate.ServerVersionEightPointFour value is getitng dropped here
…erset carrying 8.4 ahead of the SDK enum, so the swap changed validation behavior
e92de55 to
7c72460
Compare
Part 3/4 of splitting #33162 (services hdinsight through network, 76 files).
Converts complete hand-written
validation.StringInSliceenum value lists to the generatedPossibleValuesFor<Enum>()helpers, so new enum values are picked up automatically on SDK upgrades. No validation behavior changes - only lists proven complete by the AZS004 check are converted.Deliberately left as-is across the series: 235 lists missing values from their enum (accepting new values is a behavior change needing per-case review) and 69 lists referencing track-1 SDK enums whose
Possible<Enum>Values()helpers return typed slices rather than[]string. AZS004 stays disabled in .golangci.yml until these are resolved (comment updated in part 4/4).