Skip to main content

declared_schema

Function declared_schema 

Source
pub fn declared_schema(body: &Value) -> Option<EvalSchema>
Expand description

The Eval arm body declares in its schema key, or None when the key is absent, not a string, or not an accepted Eval identifier.

This reads one key and checks nothing else; a body that declares an arm can still fail that arm’s validation. None means the body is not an Eval the hub accepts, and crate::validate::validate reports why.