You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CustomParameter generates an entry where default parameter is not quoted. That leads to type mismatch in result YAML, since some defaults like true, on, and off can be treated as booleans instead of strings.
% circleci config validate config.yml
Error: Error in definition of command 'some-command'
Parameter error: default value of parameter 'some_value' is 'false' (type boolean): expected type string
Good catch, YAML is going to make that one difficult for us. I think the main issue will be we are using a YAML parser and don't actually have a way of informing the parser to treat this value specifically as part of a string without writing some kind of custom validation library.
Was this a blocking issue or were you able to work around using a boolean or another string value?
Is there an existing issue for this?
Current behavior
CustomParameter
generates an entry where default parameter is not quoted. That leads to type mismatch in result YAML, since some defaults liketrue
,on
, andoff
can be treated as booleans instead of strings.Config is not valid
Minimum reproduction code
https://gist.github.com/Kylmakalle/22f2c6eae2bd09758a70be2510284b33
Expected behavior
Any default provided value is
"quoted"
properly and aligns with parameter type.CircleCI Config SDK version
0.12.0
Node.js version
19.0.0
In which operating systems have you tested?
The text was updated successfully, but these errors were encountered: