mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix "thumbnail" key in manifest files not being optional (#5122)
This commit is contained in:
parent
32ce5cad22
commit
09d3eab688
@ -86,7 +86,8 @@ pub struct TemplateInfo {
|
||||
pub entrypoint: EcoString,
|
||||
/// A path relative to the package's root that points to a PNG or lossless
|
||||
/// WebP thumbnail for the template.
|
||||
pub thumbnail: EcoString,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub thumbnail: Option<EcoString>,
|
||||
/// All parsed but unknown fields, this can be used for validation.
|
||||
#[serde(flatten, skip_serializing)]
|
||||
pub unknown_fields: UnknownFields,
|
||||
|
Loading…
x
Reference in New Issue
Block a user