Skip to content

Commit

Permalink
fix defaults for availability model
Browse files Browse the repository at this point in the history
  • Loading branch information
jwfraustro committed Dec 15, 2023
1 parent 3af8127 commit 1338dfa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vo_models/vosi/availability/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}


class Availability(BaseXmlModel, tag="availability", nsmap=NSMAP):
class Availability(BaseXmlModel, tag="availability", nsmap=NSMAP, skip_empty=True):
"""VOSI Availability complex type.
Elements:
Expand All @@ -26,7 +26,7 @@ class Availability(BaseXmlModel, tag="availability", nsmap=NSMAP):
"""

available: bool = element(tag="available")
up_since: Optional[UTCTimestamp] = element(tag="upSince")
down_at: Optional[UTCTimestamp] = element(tag="downAt")
back_at: Optional[UTCTimestamp] = element(tag="backAt")
note: Optional[list[str]] = element(tag="note")
up_since: Optional[UTCTimestamp] = element(tag="upSince", default=None)
down_at: Optional[UTCTimestamp] = element(tag="downAt", default=None)
back_at: Optional[UTCTimestamp] = element(tag="backAt", default=None)
note: Optional[list[str]] = element(tag="note", default=None)

0 comments on commit 1338dfa

Please sign in to comment.