Oleg

Results 4 comments of Oleg

Better late than never https://django-ninja.dev/reference/operations-parameters/#exclude_unset you could use it like this: ```pathon @api.patch("/{id}", response=RespSchema) def patch_view(request, employee_id, body: ReqSchema): employee = get_object_or_404(Employee, id=employee_id) filtered_dict = body.dict(exclude_unset=True) for attr, value in...

As far as I understand, the concept of Schemas is to deal with unset values, is by setting them to None. Pydantic deals with this this way and by extension...

as long its still possible to call `.dict()` on the payload i too think its a quite elegant solution FilterSchema does a simmilar thing with `newqs = filters.filter(qs)`

@medram your error lies with your schema definition ``` class ContractSchemaInput(ModelSchema): sender_id: int | None client_id: int | None type_id: int | None care_type: Literal["​ambulante", "accommodation"] | None start_date: date...