Skip to content

Commit 5a76008

Browse files
committed
feat: add new Error variant NoSchema
1 parent c563e03 commit 5a76008

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/oas3/src/spec/schema.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ pub enum Error {
2424
/// Required property list specified for a non-object schema.
2525
#[display("Required property list specified for a non-object schema")]
2626
RequiredSpecifiedOnNonObject,
27+
28+
/// `Option<ObjectOrReference<ObjectSchema>>` evaluated to be `None`.
29+
#[display("Cannot attempt to resolve this schema because Option<ObjectOrReference<ObjectSchema>> evaluated to None")]
30+
NoSchema,
2731
}
2832

2933
/// Single schema type.

0 commit comments

Comments
 (0)