Skip to content

Commit

Permalink
πŸ› add #[serde(default)] to Metadata fields
Browse files Browse the repository at this point in the history
  • Loading branch information
pkb-pmj committed Jul 9, 2023
1 parent 9cb4078 commit e942381
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/linked_roles/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ pub struct Metadata {
/// name of the metadata field (max 100 characters)
pub name: String,
/// translations of the name
#[serde(default)]
pub name_localizations: HashMap<String, String>,
/// description of the metadata field (max 200 characters)
pub description: String,
/// translations of the description
#[serde(default)]
pub description_localizations: HashMap<String, String>,
}

Expand Down

0 comments on commit e942381

Please sign in to comment.