pub(crate) fn parse_def(
path: &str,
name: &str,
body: &Value,
) -> Result<Def, SchemaError>Expand description
Parses one definition.
name is the key it sits under in defs, which is what decides whether a
primary definition is in a legal position; path is the same thing
rendered for error messages.