HomeGuides
Try a DemoGet the Latest ReleaseSee the CHANGELOGCreate a Feature Request / Bug ReportJoin the Conversation
Guides

Format

Format conditions evaluate the format, structure, or shape of data.

format.json

Evaluates if data is valid JSON text.

Example

sub.condition.format.json()
sub.cnd.fmt.json()

format.mime

Evaluates if data matches a MIME type.

Settings

FieldTypeDescriptionRequired
typestringThe MIME type used during inspection..Yes

Example

sub.condition.format.mime(
  settings={type: 'application/x-gzip'}
)
sub.cnd.fmt.mime({type: 'application/x-gzip'})