Fix "thumbnail" key in manifest files not being optional (#5122)

This commit is contained in:
Armin Brauns 2024-10-07 08:22:59 +00:00 committed by GitHub
parent 20ce48dc36
commit deb0308980
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,8 @@ pub struct TemplateInfo {
pub entrypoint: EcoString, pub entrypoint: EcoString,
/// A path relative to the package's root that points to a PNG or lossless /// A path relative to the package's root that points to a PNG or lossless
/// WebP thumbnail for the template. /// 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. /// All parsed but unknown fields, this can be used for validation.
#[serde(flatten, skip_serializing)] #[serde(flatten, skip_serializing)]
pub unknown_fields: UnknownFields, pub unknown_fields: UnknownFields,