Skip to content

Commit

Permalink
Make ermittlungsauftrag.flatId and prozess.einheit nullable (#9)
Browse files Browse the repository at this point in the history
Fixes
> 0.flatId
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.6/v/string_type
0.prozess.einheit
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.6/v/string_type
8.flatId
  Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.6/v/string_type
  • Loading branch information
hf-kklein authored Mar 1, 2024
1 parent 71182f2 commit f924709
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bssclient/models/ermittlungsauftrag.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Ermittlungsauftrag(BaseModel):

model_config = ConfigDict(extra="allow", populate_by_name=True)
id: UUID
flat_id: str = Field(alias="flatId")
flat_id: str | None = Field(alias="flatId", default=None)
"""
the external ID of the respective Wohneinheit
"""
Expand Down
2 changes: 1 addition & 1 deletion src/bssclient/models/prozess.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ class Prozess(BaseModel):
transaktionsgrund: str
ausloeser_daten: str = Field(alias="ausloeserDaten")
antwort_status: str = Field(alias="antwortStatus")
einheit: str
einheit: str | None = None
messlokation: str
zaehlernummer: str

0 comments on commit f924709

Please sign in to comment.