Skip to main content

Module validation

Module validation 

Source

Enums§

ValidationError
All possible validation failures. Each variant carries enough context to produce a helpful error message for the client.

Functions§

validate_allowed_properties
Check that every top-level key in the payload is in the allowed list.
validate_collection_name
Validate a collection name.
validate_field_name
Validate a field name used in projections, WHERE clauses, or joins.
validate_json_depth
Validate that a JSON value is not nested more than max_depth levels deep.
validate_key_count
Validate that a batch operation doesn’t contain more than max_keys keys.
validate_key_name
Validate a document key name.
validate_payload_size
Validate that the serialized payload does not exceed max_size_bytes.
validate_request
Run all validation checks on an incoming request payload.