1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-04-20 06:54:46 +00:00

openapiv3 upstream changed StringFormat: just use ..Default::default()

This commit is contained in:
Dominic 2020-01-17 21:37:41 +01:00
parent f7600977c8
commit 6aa53942a0
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
3 changed files with 4 additions and 6 deletions

View file

@ -299,8 +299,7 @@ impl<T : Into<Body>> ResourceResult for Raw<T>
{
OpenapiSchema::new(SchemaKind::Type(Type::String(StringType {
format: VariantOrUnknownOrEmpty::Item(StringFormat::Binary),
pattern: None,
enumeration: Vec::new()
..Default::default()
})))
}
}