data:validate

Checks that a content string is valid for a given format (csv, json, yaml)

Options

NameTypeDescription
contentstringThe raw content string to validate
content_typestringThe format to validate against: "csv", "json", or "yaml"
separatorstringThe CSV field separator character (used only for csv content type)

Outputs

NameTypeDescription
validboolWhether the content is valid for the given content type
errorstringThe validation error message when Valid is false
resultanyParsed representation of the content when Valid is true
content_typestringThe content type that was validated
records_countintNumber of records found (CSV only)
columns_countintNumber of columns in the first row (CSV only)
dataanyThe parsed data structure
typestringThe detected data type ("object", "array", "string", etc.)