diff --git a/pyodk/_endpoints/forms.py b/pyodk/_endpoints/forms.py index 74caec8..d7120d1 100644 --- a/pyodk/_endpoints/forms.py +++ b/pyodk/_endpoints/forms.py @@ -20,12 +20,12 @@ class Form(bases.Model): projectId: int xmlFormId: str - name: str version: str - enketoId: str hash: str state: str # open, closing, closed createdAt: datetime + name: str | None # Null if Central couldn't parse the XForm title, or it was blank. + enketoId: str | None # Null if Enketo not being used with Central. keyId: int | None updatedAt: datetime | None publishedAt: datetime | None diff --git a/tests/resources/forms_data.py b/tests/resources/forms_data.py index 1be4596..61a8aa6 100644 --- a/tests/resources/forms_data.py +++ b/tests/resources/forms_data.py @@ -25,7 +25,7 @@ "projectId": 8, "xmlFormId": "external_52k", "state": "open", - "enketoId": "Mscnfqdz7w6Nz21gkPYdNNbmOKP6hpT", + "enketoId": None, "enketoOnceId": "0510ccec266c8e0c88e939c2597341e523535b0e18460fca7c8b4585826a157d", "createdAt": "2021-10-28T19:11:37.064Z", "updatedAt": "2021-10-28T19:11:59.047Z", @@ -36,7 +36,7 @@ "sha256": "1c5ffdf837c153672fbd7858753c6fa41a8e5813423932e53162016139f11ca1", "draftToken": None, "publishedAt": "2021-10-28T19:11:57.082Z", - "name": "External 52k", + "name": None, }, { "projectId": 8,