fix: Data was not allowed in an interface
Co-authored-by: rvcas <x@rvcas.dev>
This commit is contained in:
@@ -296,6 +296,17 @@ impl Annotated<Schema> {
|
||||
description,
|
||||
annotated: data,
|
||||
}),
|
||||
|
||||
Annotated {
|
||||
title: Some(title),
|
||||
description,
|
||||
annotated: Schema::Data(None),
|
||||
} if title == "Data" => Ok(Annotated {
|
||||
title: Some(title),
|
||||
description,
|
||||
annotated: Data::AnyOf(vec![]),
|
||||
}),
|
||||
|
||||
_ => Err(Error::new(ErrorContext::ExpectedData, type_info)),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user