Skip to main content

validate_scope_text

Function validate_scope_text 

Source
pub fn validate_scope_text(
    value: &str,
    maximum: usize,
) -> Result<(), ScopeTextError>
Expand description

Validate one bounded logical selector at the native request boundary.

JSON Schema advertises the same limits, but native --request-json callers do not pass through a schema validator, so the runtime contract must check them independently.

ยงErrors

Returns the precise empty, control-character, or byte-length violation.