Open mistermoe opened 5 hours ago
❯ ftl config set --json echo.default '{ "name": "beepboop" }' ftl: error: unknown: JSON validation failed: default has wrong type, expected String found map[string]interface {}
❯ ftl config set --json echo.default "{\"name\": \"beepboop\"}" ftl: error: unknown: JSON validation failed: default has wrong type, expected String found map[string]interface {}
❯ ftl config set --db --json echo.default '"{\"name\": \"beepboop\"}"'
[!NOTE] Finally! But yuck
❯ ftl config get echo.default "{\"name\": \"beepboop\"}"
❯ ftl config set --db echo.default '{"name": 3}'
❯ ftl config get echo.default "{\"name\": 3}"
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
String
Repro