-
Notifications
You must be signed in to change notification settings - Fork 88
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
Some Auth0 Forms Components not supported i.e IMAGE #1057
Comments
+1 |
Thanks so much @kushalshit27. You guys are doing a super job 💪!! Just one question for my understanding, does this mean that IMAGE will be supported in 1058 Or do you mean it should already be working and I am doing something wrong? I am currently getting the error when deploying a new form with IMAGE component:
|
The issue looks like it is due to the validation of the schema node. RecommendationFoms resources are complex due to their nested JSON nature. its recommended to using UI first to create a form. Then, if it looks good, export it as a Terraform file; the generated Terraform is ready to be used on any tenant without using UI. Export existing form to terraform filePlease use Terraform version 1.9.x for better support of jsonencode [This resource can be imported using the form ID.]
terraform {
required_providers {
auth0 = {
source = "auth0/auth0"
version = ">= 1.7.1"
}
}
}
import {
id = "ap_ojkKbiPMG6J5E5VCKdeCzK"
to = auth0_form.my_form
} run command: terraform plan -generate-config-out=terraform_generated.tf
|
@kushalshit27 Can confirm after using the config from generated plan after importing the terraform config from auth0 works, Thankyou |
I hope this is resolved. Thanks for opening this ticket! |
Checklist
Description
When adding an IMAGE Component to Auth0 Form, it seems to be not yet supported as according to the error:
Heres the error when adding an Image component to Form:
Error: 400 Bad Request: Payload validation error: 'None of the valid schemas were met' on property nodes[0] ({description}). Inner errors: [ Payload validation error: 'Additional properties not allowed: components' on property nodes[0].config ({description}). (also) Payload validation error: 'Invalid value "STEP"' on property nodes[0].type. (also) Payload validation error: 'Additional properties not allowed: next_node,components' on property nodes[0].config ({description}). (also) Payload validation error: 'None of the valid schemas were met' on property nodes[0].config.components[0] ({description}). Inner errors: [ Payload validation error: 'None of the valid schemas were met' on property config.components[0] ({description}). Inner errors: [ Payload validation error: 'Additional properties not allowed: width,src,position,height' on property config ({description}). (also) Payload validation error: 'Invalid value "IMAGE"' on property type. (also) Payload validation error: 'Additional properties not allowed: width' on property config ({description}). ]. (also) Payload validation error: 'None of the valid schemas were met' on property config.components[0] ({description}). Inner errors: [ Payload validation error: 'Additional properties not allowed: width,src,position,height' on property config ({description}). (also) Payload validation error: 'Invalid value "IMAGE"' on property type. ]. ]. ].
The issue may be present for other Components not yet tested.
Expectation
I should be able to deploy valid Forms components with Terraform Auth0 Provider
Reproduction
Error: 400 Bad Request: Payload validation error: 'None of the valid schemas were met' on property nodes[0] ({description}). Inner errors: [ Payload validation error: 'Additional properties not allowed: components' on property nodes[0].config ({description}). (also) Payload validation error: 'Invalid value "STEP"' on property nodes[0].type. (also) Payload validation error: 'Additional properties not allowed: next_node,components' on property nodes[0].config ({description}). (also) Payload validation error: 'None of the valid schemas were met' on property nodes[0].config.components[0] ({description}). Inner errors: [ Payload validation error: 'None of the valid schemas were met' on property config.components[0] ({description}). Inner errors: [ Payload validation error: 'Additional properties not allowed: width,src,position,height' on property config ({description}). (also) Payload validation error: 'Invalid value "IMAGE"' on property type. (also) Payload validation error: 'Additional properties not allowed: width' on property config ({description}). ]. (also) Payload validation error: 'None of the valid schemas were met' on property config.components[0] ({description}). Inner errors: [ Payload validation error: 'Additional properties not allowed: width,src,position,height' on property config ({description}). (also) Payload validation error: 'Invalid value "IMAGE"' on property type. ]. ]. ].`
Auth0 Terraform Provider version
1.7.1
Terraform version
1.9.5
The text was updated successfully, but these errors were encountered: