Skip to content

Commit c98824c

Browse files
committed
📝 [#472] update description of 'data_attrs' query param in the OAS
1 parent 234daf0 commit c98824c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/objects/api/v2/filters.py

+3
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ class ObjectRecordFilterSet(FilterSet):
7777
Example: in order to display only objects with `height` equal to 100, query `data_attrs=height__exact__100`
7878
should be used. If `height` is nested inside `dimensions` attribute, query should look like
7979
`data_attrs=dimensions__height__exact__100`
80+
81+
If you want to include comma to value part, use `\\,` to escape it, for example (with percentage encoding):
82+
`data_attrs=naam__icontains__Advies%%5C, support en kennis`
8083
"""
8184
)
8285
% {"operator_choices": display_choice_values_for_help_text(Operators)},

src/objects/api/v2/openapi.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.3
22
info:
33
title: Objects API
4-
version: 2.4.3 (v2)
4+
version: 2.4.3
55
description: |
66
An API to manage Objects.
77
@@ -114,6 +114,9 @@ paths:
114114
Example: in order to display only objects with `height` equal to 100, query `data_attrs=height__exact__100`
115115
should be used. If `height` is nested inside `dimensions` attribute, query should look like
116116
`data_attrs=dimensions__height__exact__100`
117+
118+
If you want to include comma to value part, use `\,` to escape it, for example (with percentage encoding):
119+
`data_attrs=naam__icontains__Advies%5C, support en kennis`
117120
- in: query
118121
name: data_icontains
119122
schema:
@@ -641,6 +644,9 @@ paths:
641644
Example: in order to display only objects with `height` equal to 100, query `data_attrs=height__exact__100`
642645
should be used. If `height` is nested inside `dimensions` attribute, query should look like
643646
`data_attrs=dimensions__height__exact__100`
647+
648+
If you want to include comma to value part, use `\,` to escape it, for example (with percentage encoding):
649+
`data_attrs=naam__icontains__Advies%5C, support en kennis`
644650
date:
645651
type: string
646652
format: date

0 commit comments

Comments
 (0)