Skip to content

Commit 5b5206b

Browse files
committed
fix(frontmatter): status is always an array
1 parent 508b26f commit 5b5206b

File tree

1 file changed

+1
-6
lines changed
  • crates/rari-doc/src/pages/types

1 file changed

+1
-6
lines changed

crates/rari-doc/src/pages/types/doc.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,7 @@ pub struct FrontMatter {
5252
pub slug: String,
5353
#[serde(rename = "page-type", skip_serializing_if = "is_page_type_none")]
5454
pub page_type: PageType,
55-
#[serde(
56-
deserialize_with = "t_or_vec",
57-
serialize_with = "serialize_t_or_vec",
58-
default,
59-
skip_serializing_if = "Vec::is_empty"
60-
)]
55+
#[serde(default, skip_serializing_if = "Vec::is_empty")]
6156
pub status: Vec<FeatureStatus>,
6257
#[serde(
6358
rename = "browser-compat",

0 commit comments

Comments
 (0)