serge icon indicating copy to clipboard operation
serge copied to clipboard

Cannot use env variable on boolean property

Open dragosv opened this issue 4 years ago • 0 comments

Mojito translation service plugin has a boolean property in the schema. When trying to use an env variable with it I get the following error

Exception occurred while processing configuration file: Data validation failed for plugin 'Serge::Sync::Plugin::TranslationService::mojito': '%ENV:ENV_VAR%' is not a valid boolean number

This is because subst_macros is applied after the validate_data in the base class.

dragosv avatar Mar 19 '20 23:03 dragosv