Skip to main content

infer

Function infer 

Source
pub fn infer(value: &Value) -> Value
Expand description

A schema inferred from a value.

Deliberately a small subset of JSON Schema — types, properties, and item shapes. Enough for a model to plan against and for a consumer to compare two responses; not an attempt to reconstruct a contract the API never published. Validating against a declared contract is US-0803.