-A field that holds JSON text, such as `responseFormat`, a table row's `data` or a response body, takes an object or array literal and stores it as formatted JSON. Each bare reference inside is quoted when the output is a string and left bare otherwise, because the run splices a string raw and any other value as JSON. A Function's `result`, or a field of it, has the type its JavaScript certainly returns there (a string literal, `String(…)`, `.toISOString().slice(…)` and the like are text; arithmetic, comparisons and literals are not); a Function `result` or an API `data` whose code or response may be text is untyped unless the code says. A reference no output type is known for is stored bare with `W_JSON_REF_UNTYPED`. A template is a JSON string, which is how a value becomes text on purpose. `source get` prints a stored quoted reference as the bare reference only when a declaration (the catalog, a variable's type, an input or response format) types it a string; one typed only by what a Function's code or a child workflow returns prints as ``t`${ref}` ``, so editing that code never changes how a field that reads it is stored. A resource helper inside the literal is `E_UNSUPPORTED_SYNTAX`.
0 commit comments