Skip to main content

is_string_only_schema

Function is_string_only_schema 

Source
pub fn is_string_only_schema(schema: &Value) -> bool
Expand description

Whether a schema denotes a string-only value (string, ignoring null).

Mirrors omp’s isStringOnlySchema: collect all declared types, drop null, and require exactly {"string"} to remain.