🐛 Date(time) formats as dictated by Open Zaak EIGENSCHAP (SPECIFICATIE) with formaat
: Datum
or Datumtijd
are not supported by zgw_consumers
#72
Labels
General information
Zgw_consumers version: 0.16.1 (but also relevant in latest version)
Describe the bug
Open Zaak dictates that a date value of an EIGENSCHAP with EIGENSCHAP SPECIFICATIE
formaat
:Datum
should have as its length 8. Zgw_consumers uses default python packages that don't support the format DICTATED by Open Zaak. Both of which use/support python 3.9. (3.11 does support YYYYMMDD)The lines to blame:
zgw-consumers/zgw_consumers/api_models/catalogi.py
Line 112 in 229c5f7
To Reproduce
Steps to reproduce the behavior:
In Open Zaak:
formaat
:Datum
(i.e. length must be 8).waarde
:20231004
.In consumer API:
Fetch zaakeigenschap en eigenschap.
Use factory from api_models and create a ZaakEigenschap instance with the Eigenschap instance as its eigenschap value.
Try zaakeigenschap.get_waarde().
Expected behavior
zgw_consumers to be aligned with Open Zaak within its respective supported python versions.
The text was updated successfully, but these errors were encountered: