serge-community / serge

Continuous localization platform
https://serge.io/
Other
236 stars 52 forks source link

Cannot use env variable on boolean property #128

Open dragosv opened 4 years ago

dragosv commented 4 years ago

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.