We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dba21f1 commit 60dcc54Copy full SHA for 60dcc54
src/types.rs
@@ -80,9 +80,7 @@ impl Type {
80
let data = match s.instance_type {
81
Some(SingleOrVec::Single(it)) => match *it {
82
InstanceType::Object => {
83
- let obj = s
84
- .object
85
- .context("unsupported: object type without further validation")?;
+ let obj = s.object.unwrap_or_default();
86
TypeData::from_object_schema(*obj, s.subschemas)?
87
}
88
InstanceType::Integer => {
0 commit comments