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

check for IsComputed when validating a schema object #14801

Merged
merged 1 commit into from
May 24, 2017

Conversation

jbardin
Copy link
Member

@jbardin jbardin commented May 24, 2017

GH-14784 allowed nested structures to be validated, rather than relying
on the raw value. However this still returns the same validation error
if the structures contain a computed value, since Get will return the
raw string in that case.

This simply skips the validation in the IsComputed case, since there's
nothing that can be checked.

GH-14784 allowed nested structures to be validate, rather than relying
on the raw value. However this still returns the same validation error
if the structures contain a computed value, since Get will return the
raw string in that case.

This simply skips the validation in the IsComputed case, since there's
nothing that can be checked.
@jbardin
Copy link
Member Author

jbardin commented May 24, 2017

@mattrobenolt, thanks for the initial PR!

@mattrobenolt
Copy link
Contributor

Ah, I see what I did wrong. :) Thanks for the carry! ❤️

Copy link
Contributor

@apparentlymart apparentlymart left a comment

Choose a reason for hiding this comment

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

Looks good to me!

This will probably cause certain errors to move to the apply phase, but they can't have been doing anything useful during the plan phase anyway (since they where just the unknown variable value) so no worse than we had before, and not much else we can do for that situation anyway.

@jbardin jbardin merged commit cd7c5cb into master May 24, 2017
@jbardin jbardin deleted the jbardin/validate-computed-object branch May 24, 2017 17:31
@ghost
Copy link

ghost commented Apr 12, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants