Skip to content

Commit

Permalink
fix(frontmatter): status is always an array
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Jan 29, 2025
1 parent 508b26f commit 5b5206b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/rari-doc/src/pages/types/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,7 @@ pub struct FrontMatter {
pub slug: String,
#[serde(rename = "page-type", skip_serializing_if = "is_page_type_none")]
pub page_type: PageType,
#[serde(
deserialize_with = "t_or_vec",
serialize_with = "serialize_t_or_vec",
default,
skip_serializing_if = "Vec::is_empty"
)]
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub status: Vec<FeatureStatus>,
#[serde(
rename = "browser-compat",
Expand Down

0 comments on commit 5b5206b

Please sign in to comment.