Skip to content

Commit

Permalink
Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
silviogutierrez committed Nov 30, 2023
1 parent efbd173 commit 2189523
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions reactivated/serialization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down

0 comments on commit 2189523

Please sign in to comment.