Skip to main content

Module validate

Module validate 

Source
Expand description

Input validation utilities for the Geode client.

This module provides validation functions for user-supplied inputs to prevent injection attacks and ensure data integrity.

Constants§

MAX_HOSTNAME_LENGTH
Maximum allowed hostname length
MAX_PARAM_NAME_LENGTH
Maximum allowed parameter name length
MAX_QUERY_LENGTH
Maximum allowed query length in bytes
MIN_FRAME_BYTES
Minimum allowed frame size in bytes
MIN_JSON_DEPTH
Minimum allowed JSON depth

Functions§

hostname
Validate a hostname.
max_frame_bytes
Validate a maximum frame size.
max_json_depth
Validate maximum JSON depth.
max_pages
Validate a maximum pages limit.
max_rows
Validate a maximum rows limit.
page_size
Validate a page size.
param_name
Validate a parameter name.
port
Validate a port number.
query
Validate a GQL query string.