Skip to content

Commit 60dcc54

Browse files
committed
Allow empty objects
1 parent dba21f1 commit 60dcc54

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/types.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ impl Type {
8080
let data = match s.instance_type {
8181
Some(SingleOrVec::Single(it)) => match *it {
8282
InstanceType::Object => {
83-
let obj = s
84-
.object
85-
.context("unsupported: object type without further validation")?;
83+
let obj = s.object.unwrap_or_default();
8684
TypeData::from_object_schema(*obj, s.subschemas)?
8785
}
8886
InstanceType::Integer => {

0 commit comments

Comments
 (0)