Skip to content

Commit 84d3f72

Browse files
CharStringsvenvandescheur
authored andcommitted
📝 [#35] docs: Document zaaktypen-list query params in OAS
1 parent 6aefc48 commit 84d3f72

File tree

1 file changed

+9
-5
lines changed
  • backend/src/openbeheer/zaaktype/api

1 file changed

+9
-5
lines changed

backend/src/openbeheer/zaaktype/api/views.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import datetime
2-
from typing import Mapping
2+
from typing import Annotated, Mapping
33

44
from ape_pie import APIClient
5-
from msgspec import UNSET, Struct, UnsetType
5+
from msgspec import UNSET, Meta, Struct, UnsetType
66
from rest_framework.request import Request
77
from openbeheer.api.views import ListView
88
from openbeheer.types._zgw import ZGWResponse
@@ -12,12 +12,16 @@
1212

1313

1414
class ZaaktypenGetParametersQuery(OBPagedQueryParams, kw_only=True, rename="camel"):
15-
catalogus: str | UnsetType = UNSET # frontend uuid.UUID, backend url
16-
datum_geldigheid: str | UnsetType = UNSET
15+
catalogus: Annotated[
16+
str | UnsetType, Meta(description="UUID part of the catalogus URL")
17+
] = UNSET # frontend uuid.UUID, backend url
18+
datum_geldigheid: datetime.date | UnsetType = UNSET
1719
identificatie: str | UnsetType = UNSET
1820
page: int = 1
1921
status: Status = Status.alles # OZ defaults to definitief
20-
trefwoorden: str | UnsetType = UNSET
22+
trefwoorden: Annotated[
23+
str | UnsetType, Meta(description="Comma separated keywords")
24+
] = UNSET
2125

2226

2327
class ZaakType(Struct, kw_only=True, rename="camel"):

0 commit comments

Comments
 (0)