aboutsummaryrefslogtreecommitdiffstats
path: root/backend/models/antispam.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-12-12 14:32:13 +0000
committerGravatar GitHub <[email protected]>2020-12-12 14:32:13 +0000
commit35626c80026931dc7306f06bcd5e7cdc70d4dddc (patch)
treea7649a765812096a21a87b8089f5977517c80a43 /backend/models/antispam.py
parentMerge pull request #16 from python-discord/add-form-response-schema (diff)
parentMake JSON errors more JS friendly and add response codes (diff)
Merge pull request #17 from python-discord/ks123/response-model-endpoint
Diffstat (limited to 'backend/models/antispam.py')
-rw-r--r--backend/models/antispam.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/backend/models/antispam.py b/backend/models/antispam.py
new file mode 100644
index 0000000..b16f686
--- /dev/null
+++ b/backend/models/antispam.py
@@ -0,0 +1,10 @@
+from pydantic import BaseModel
+
+
+class AntiSpam(BaseModel):
+ """Schema model for form response antispam field."""
+
+ ip_hash: str
+ user_agent_hash: str
+ captcha_pass: bool
+ dns_blacklisted: bool