Skip to content

Commit c3c3d56

Browse files
authored
fix(lint): describe unquoted JSON references as failing only when the text is not itself JSON (#8854)
1 parent e620ee0 commit c3c3d56

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/docs/openapi-v2-workflows.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7048,7 +7048,7 @@
70487048
"required": ["blockId", "blockName", "blockType", "field", "value", "kind", "reason"],
70497049
"additionalProperties": false
70507050
},
7051-
"description": "Credential, resource, tool, and skill references that do not resolve, and `block-output` references that will not work as written: a block that does not exist, an output field the block does not have (reason `unknown-field`), or a text output written unquoted in a JSON field (reason `unquoted-json-string`). These values are still persisted; they are reported, not dropped."
7051+
"description": "Credential, resource, tool, and skill references that do not resolve; `block-output` references that will not work as written: a block that does not exist, or an output field the block does not have (reason `unknown-field`); and text outputs written unquoted in a JSON field (reason `unquoted-json-string`), which leave the field invalid JSON at run time unless the text is itself JSON. These values are still persisted; they are reported, not dropped."
70527052
},
70537053
"tableFieldIssues": {
70547054
"type": "array",

‎apps/sim/lib/api/contracts/v2/workflows.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2917,7 +2917,7 @@ const v2WorkflowLintSchema = z
29172917
})
29182918
)
29192919
.describe(
2920-
'Credential, resource, tool, and skill references that do not resolve, and `block-output` references that will not work as written: a block that does not exist, an output field the block does not have (reason `unknown-field`), or a text output written unquoted in a JSON field (reason `unquoted-json-string`). These values are still persisted; they are reported, not dropped.'
2920+
'Credential, resource, tool, and skill references that do not resolve; `block-output` references that will not work as written: a block that does not exist, or an output field the block does not have (reason `unknown-field`); and text outputs written unquoted in a JSON field (reason `unquoted-json-string`), which leave the field invalid JSON at run time unless the text is itself JSON. These values are still persisted; they are reported, not dropped.'
29212921
),
29222922
tableFieldIssues: z
29232923
.array(

0 commit comments

Comments
 (0)