auth0 / auth0-deploy-cli

The Auth0 Deploy CLI is a tool that helps you manage your Auth0 tenant configuration. It integrates into your development workflows as a standalone CLI or as a node module.
MIT License
236 stars 147 forks source link

Unable to import exported tenant.yaml with captcha_widget_theme in themes.color #897

Open hasanyc opened 3 months ago

hasanyc commented 3 months ago

Checklist

Description

While importing the exported tenant.yaml using following command: a0deploy import --config_file=config.json --input_file local/tenant.yaml

I am getting this: `themes:

Error a0deploy showing:

2024-03-12T15:16:44.618Z - error: Problem running command import 2024-03-12T15:16:44.622Z - error: Schema validation failed loading [ { "keyword": "additionalProperties", "dataPath": ".themes[0].colors", "schemaPath": "#/properties/themes/items/properties/colors/additionalProperties", "params": { "additionalProperty": "captcha_widget_theme" }, "message": "should NOT have additional properties" } ]

Expectation

The system should allow the user to import to another tenant successfully without facing any captcha_widget_theme error in response.

Reproduction

GIVEN user able to export successfully with the theme WHEN the user tries to import into another tenant with a theme THEN the user gets the "Schema validation failed loading" error

Deploy CLI version

7.21.0

Node version

21.2.0

sugan-ras commented 3 months ago

Also experiencing the same issue, removeing captcha_widget_theme from tenant.ymal seems to fix the issue temporarily

hasanyc commented 3 months ago

@sugan-ras If you writing automation for it then try this out (temporary solution as you said): `# For CICD