Skip to main content

Module schema_helpers

Module schema_helpers 

Source

Constants§

SUPPORTED_FILE_EXT_PATTERN
Regex matching all supported source file extensions (case-insensitive).

Functions§

integer_schema
Returns a plain integer schema without the non-standard “format”: “uint” that schemars emits by default for usize/u32 fields.
option_ast_limit_schema
Returns a nullable integer schema for Option<usize> ast_recursion_limit fields. None = library default, 0 = unlimited traversal depth, n = limit to n levels.
option_integer_schema
Returns a nullable integer schema for Option / Option fields.
option_page_size_schema
Returns a nullable integer schema for Option<usize> page_size fields. Enforces minimum: 1 to prevent callers from sending page_size=0, which would cause paginate_slice to make no progress and loop on the same cursor.
supported_file_path_schema
Returns a string schema with a pattern constraint covering all supported source file extensions. Used as schema_with on path fields.