Skip to content
New issue

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

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

Already on GitHub? # to your account

Setting both "Type" and "NestedType" removes other validation error messages. #539

Closed
seiyab opened this issue Sep 21, 2023 · 0 comments · Fixed by #897
Closed

Setting both "Type" and "NestedType" removes other validation error messages. #539

seiyab opened this issue Sep 21, 2023 · 0 comments · Fixed by #897
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@seiyab
Copy link

seiyab commented Sep 21, 2023

OpenTofu Version

1.6.0

NOTE: To be honest, I have not installed OpenTofu. I report this only by reading the code.

OpenTofu Configuration Files

N/A

I might add configuration files later if they are necessary.

Debug Output

N/A

I might add debug outputs later if they are necessary.

Expected Behavior

Validation error message "Type and NestedType cannot both be set" appears with other validation error messages.

Actual Behavior

Validation error message "Type and NestedType cannot both be set" will remove other validation error messages.

if a.Type != cty.NilType {
if a.NestedType != nil {
err = multierror.Append(fmt.Errorf("%s: Type and NestedType cannot both be set", name))
}

(Seeing it carefully, original err looks to go away)

Steps to Reproduce

To be honest, I have not installed OpenTofu. I report this only by reading the code.
I might investigate reproduction steps later if they are necessary.

Additional Context

No response

References

No response

@seiyab seiyab added bug Something isn't working pending-decision This issue has not been accepted for implementation nor rejected. It's still open to discussion. labels Sep 21, 2023
@cube2222 cube2222 self-assigned this Nov 14, 2023
@kislerdm kislerdm removed the pending-decision This issue has not been accepted for implementation nor rejected. It's still open to discussion. label Nov 14, 2023
@cube2222 cube2222 assigned ghost and unassigned cube2222 Nov 20, 2023
@ghost ghost closed this as completed in #897 Nov 21, 2023
ghost pushed a commit that referenced this issue Nov 21, 2023
…tion error messages (#897)

Signed-off-by: Janos Bonic <86970079+janosdebugs@users.noreply.github.com>
thumperward pushed a commit to thumperward/opentf that referenced this issue Jan 10, 2024
…r validation error messages (opentofu#897)

Signed-off-by: Janos Bonic <86970079+janosdebugs@users.noreply.github.com>
This issue was closed.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants