Skip to content

Commit

Permalink
fix(api): make field_id optional for back compat
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-prosser committed Oct 9, 2024
1 parent c9a783a commit 3af0f94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/src/resources/comment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ pub struct NewEntityWithSpan {
pub name: EntityName,
pub formatted_value: String,
pub span: NewEntitySpan,
pub field_id: FieldId,
pub field_id: Option<FieldId>,
}

#[derive(Debug, Clone, PartialEq, Deserialize, Serialize, Eq)]
Expand All @@ -883,7 +883,7 @@ pub struct FieldId(pub String);
pub struct NewEntityWithSpans {
pub name: EntityName,
pub formatted_value: String,
pub field_id: FieldId,
pub field_id: Option<FieldId>,
pub spans: Vec<NewEntitySpan>,
}

Expand All @@ -900,7 +900,7 @@ pub struct Entity {
pub name: EntityName,
pub formatted_value: String,
pub spans: Vec<EntitySpan>,
pub field_id: FieldId,
pub field_id: Option<FieldId>,
}

#[derive(Debug, PartialEq, Clone, Deserialize, Serialize, Eq)]
Expand Down

0 comments on commit 3af0f94

Please sign in to comment.