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
Field | Type | Description | Required |
---|---|---|---|
type | string | The MIME type used during inspection.. | Yes |
Example
sub.condition.format.mime(
settings={type: 'application/x-gzip'}
)
sub.cnd.fmt.mime({type: 'application/x-gzip'})
Updated 2 months ago