We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
module default { scalar type Lang extending str { constraint one_of("sk", 'en'); } required global i18nLang: Lang { default := "sk"; }; }
The variable can be set with value not respecting the Lang type.
Lang
set global i18nLang := "cz"; OK: SET GLOBAL
Instead an error of ConstraintViolationError should be displayed.
ConstraintViolationError
ConstraintViolationError: Lang must be one of: ['sk', 'en']. Details: violated constraint 'std::one_of' on scalar type 'default::Lang'
because similarly, when we set a wrong type, we get:
set global i18nLang := 32; gel error: ConfigurationError: invalid setting value type for default::i18nLang: 'std::int64' (expecting 'default::Lang')
This would be cool also to have handled in the ui so it won't allow to set invalid values (it will fail early).
ui
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Schema:
Current behavior:
The variable can be set with value not respecting the
Lang
type.Expected behavior:
Instead an error of
ConstraintViolationError
should be displayed.because similarly, when we set a wrong type, we get:
This would be cool also to have handled in the
ui
so it won't allow to set invalid values (it will fail early).The text was updated successfully, but these errors were encountered: