From 21895236b7f7e6970ce14d9b2dc520b6769cd3fa Mon Sep 17 00:00:00 2001 From: "Silvio J. Gutierrez" Date: Thu, 30 Nov 2023 16:42:22 -0500 Subject: [PATCH] Enum --- reactivated/serialization/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reactivated/serialization/__init__.py b/reactivated/serialization/__init__.py index 0863b9e94..1ffdf8a8d 100644 --- a/reactivated/serialization/__init__.py +++ b/reactivated/serialization/__init__.py @@ -169,6 +169,15 @@ def get_json_schema( "required": ["enum"], "additionalProperties": False, } + elif isinstance(instance, django_forms.UUIDField): + extra = { + "type": "object", + "properties": { + "enum": {"tsType": "UUID"}, + }, + "required": ["enum"], + "additionalProperties": False, + } return Thing( schema={