pub(crate) fn collect_object_shape<'a>( root: &'a Value, object: &'a Value, properties: &mut BTreeMap<String, &'a Value>, required: &mut BTreeSet<String>, ) -> Result<()>