data:validate
Checks that a content string is valid for a given format (csv, json, yaml)
Options
| Name | Type | Description |
|---|---|---|
content | string | The raw content string to validate |
content_type | string | The format to validate against: "csv", "json", or "yaml" |
separator | string | The CSV field separator character (used only for csv content type) |
Outputs
| Name | Type | Description |
|---|---|---|
valid | bool | Whether the content is valid for the given content type |
error | string | The validation error message when Valid is false |
result | any | Parsed representation of the content when Valid is true |
content_type | string | The content type that was validated |
records_count | int | Number of records found (CSV only) |
columns_count | int | Number of columns in the first row (CSV only) |
data | any | The parsed data structure |
type | string | The detected data type ("object", "array", "string", etc.) |