Skip to content

Commit

Permalink
fix(Lesson): teachers are optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeromos Kovács committed Oct 18, 2024
1 parent 286e7af commit 73ded02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ pub struct Lesson {
pub rooms: Vec<IdItem>,

/// The teachers which are teaching this lesson.
#[serde(rename = "te")]
#[serde(rename = "te", default)]
pub teachers: Vec<IdItem>,

#[serde(default)]
Expand Down

0 comments on commit 73ded02

Please sign in to comment.