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

Facing problem in ValidateFunc in Schema attributes while writing custom provider #24219

Closed
sumitAgrawal007 opened this issue Feb 26, 2020 · 2 comments

Comments

@sumitAgrawal007
Copy link

sumitAgrawal007 commented Feb 26, 2020

Terraform Version

Terraform v0.12.21

Terraform Configuration Files

"provider_type": {
				Type:     schema.TypeString,
				Optional: true,
				ForceNew: true,
				Default:  "AWS",
				ValidateFunc: validation.StringInSlice
			},

Expected Behavior

Terraform should accept the provided validator function. The validation.StringInSlice function shouldn't throw an error.

Actual Behavior

Instead it gives me a compilation error
Cannot use validation.StringInSlice (type func(valid []string, ignoreCase bool) schema.SchemaValidateFunc) as type SchemaValidateFunc less...

-->

@teamterraform
Copy link
Contributor

Hello!

We use GitHub issues for tracking bugs and enhancements, rather than for questions. While we can sometimes help with certain simple problems here, it's better to use the community forum where there are more people ready to help. The GitHub issues here are monitored only by our few core maintainers.

Since this issue doesn't represent a specific bug or feature request, We're going to close it. Please do feel free to ask your question in the community forum. Thanks!

@ghost
Copy link

ghost commented Apr 1, 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 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants