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
The error is correct, but could perhaps be clearer... --json is for specifying strongly typed values, the FTL type is String and you're trying to put a map into it.
--json has tripped a number of people up I think at this point. I wonder if we assume the input is a json string, and then have a fallback of if the expected type is string and it could not be parsed by json then we just use the input string as is...
Fixes#3408
Adds more info to the `--json` flag for `ftl config/secret set` commands
```
Command flags:
--json Assume input value is JSON. Note: For string secrets, the JSON value
itself must be a string (e.g., '"hello"' or '"{'key': 'value'}"').
```
and
```
Command flags:
--json Assume input value is JSON. Note: For string configs, the JSON value
itself must be a string (e.g., '"hello"' or '"{'key': 'value'}"').
```
Repro
Note
Finally! But yuck
The text was updated successfully, but these errors were encountered: