From 322a5cb8f18f8db4a9ee3ffdacd8a90e169c4839 Mon Sep 17 00:00:00 2001 From: Conor Holden Date: Tue, 27 Aug 2024 17:32:21 +0200 Subject: [PATCH] :memo:[#414] add in operator to schema --- src/objects/api/constants.py | 2 +- src/objects/api/v1/openapi.yaml | 2 ++ src/objects/api/v2/openapi.yaml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/objects/api/constants.py b/src/objects/api/constants.py index 6e4e61fa..a85a012e 100644 --- a/src/objects/api/constants.py +++ b/src/objects/api/constants.py @@ -9,4 +9,4 @@ class Operators(models.TextChoices): lt = "lt", _("lower than") lte = "lte", _("lower than or equal to") icontains = "icontains", _("case-insensitive partial match") - in_list = "in", _("contains") + in_list = "in", _("in a list of values seperated by `|`") diff --git a/src/objects/api/v1/openapi.yaml b/src/objects/api/v1/openapi.yaml index b86a6b24..00b6cc04 100644 --- a/src/objects/api/v1/openapi.yaml +++ b/src/objects/api/v1/openapi.yaml @@ -106,6 +106,7 @@ paths: * `lt` - lower than * `lte` - lower than or equal to * `icontains` - case-insensitive partial match + * `in` - in a list of values seperated by `|` `value` may not contain double underscore or comma characters. `key` may not contain comma characters and includes double underscore only if it indicates nested attributes. @@ -537,6 +538,7 @@ paths: * `lt` - lower than * `lte` - lower than or equal to * `icontains` - case-insensitive partial match + * `in` - in a list of values seperated by `|` `value` may not contain double underscore or comma characters. `key` may not contain comma characters and includes double underscore only if it indicates nested attributes. diff --git a/src/objects/api/v2/openapi.yaml b/src/objects/api/v2/openapi.yaml index a2d5409b..e9585683 100644 --- a/src/objects/api/v2/openapi.yaml +++ b/src/objects/api/v2/openapi.yaml @@ -106,6 +106,7 @@ paths: * `lt` - lower than * `lte` - lower than or equal to * `icontains` - case-insensitive partial match + * `in` - in a list of values seperated by `|` `value` may not contain double underscore or comma characters. `key` may not contain comma characters and includes double underscore only if it indicates nested attributes. @@ -587,6 +588,7 @@ paths: * `lt` - lower than * `lte` - lower than or equal to * `icontains` - case-insensitive partial match + * `in` - in a list of values seperated by `|` `value` may not contain double underscore or comma characters. `key` may not contain comma characters and includes double underscore only if it indicates nested attributes.