Unable to import exported tenant.yaml with captcha_widget_theme in themes.color
Checklist
- [X] I have looked into the README and have not found a suitable solution or answer.
- [X] I have looked into the documentation and have not found a suitable solution or answer.
- [X] I have searched the issues and have not found a suitable solution or answer.
- [X] I have upgraded to the latest version of this tool and the issue still persists.
- [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- [X] I agree to the terms within the Auth0 Code of Conduct.
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:
- borders: button_border_weight: 1 buttons_style: rounded button_border_radius: 3 input_border_weight: 1 inputs_style: rounded input_border_radius: 3 widget_corner_radius: 5 widget_border_weight: 0 show_widget_shadow: true colors: captcha_widget_theme: auto primary_button: '#635dff' primary_button_label: '#ffffff' secondary_button_border: '#c9cace' secondary_button_label: '#1e212a' base_focus_color: '#635dff' base_hover_color: '#000000' links_focused_components: '#635dff' header: '#1e212a' body_text: '#1e212a' widget_background: '#ffffff' widget_border: '#c9cace' input_labels_placeholders: '#65676e' input_filled_text: '#000000' input_border: '#c9cace' input_background: '#ffffff' icons: '#65676e' error: '#d03c38' success: '#13a688' captcha_widget_theme: auto displayName: Unnamed Theme`
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
Also experiencing the same issue, removeing captcha_widget_theme from tenant.ymal seems to fix the issue temporarily
@sugan-ras If you writing automation for it then try this out (temporary solution as you said): `# For CICD
- sed -i '/captcha_widget_theme/d' output/tenant.yaml
For Mac
- sed -i '' '/captcha_widget_theme/d' output/tenant.yaml`