Skip to content

Commit

Permalink
feat(oca-bundle): add serde rename annotation to attribute_type field…
Browse files Browse the repository at this point in the history
… in Attribute struct
  • Loading branch information
olichwiruk committed Nov 22, 2023
1 parent 132074f commit 90b87b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oca-bundle/src/state/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use crate::state::{encoding::Encoding, entry_codes::EntryCodes, entries::Entries
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Attribute {
pub name: String,
#[serde(rename = "type")]
pub attribute_type: Option<AttributeType>,
pub is_flagged: bool,
pub labels: Option<HashMap<Language, String>>,
Expand Down

0 comments on commit 90b87b9

Please sign in to comment.