mirror of https://gitlab.com/litecord/litecord.git
Compare commits
6 Commits
9ca4480a22
...
9202ddc3f7
| Author | SHA1 | Date |
|---|---|---|
|
|
9202ddc3f7 | |
|
|
5f97103e1c | |
|
|
e9f762366e | |
|
|
549d5992fd | |
|
|
fbc15219f7 | |
|
|
e9edd8ba37 |
|
|
@ -53,7 +53,7 @@ are not implemented, for example:
|
|||
|
||||
- Threads
|
||||
- Channel Categories
|
||||
- API v9 (Right now, Litecord, in generla, assumes v9 is
|
||||
- API v9 (Right now, Litecord, in general, assumes v9 is
|
||||
just v6 to make clients work, new payload structure support is
|
||||
scattered throughout the codebase)
|
||||
|
||||
|
|
|
|||
|
|
@ -191,6 +191,12 @@ def validate(
|
|||
if reqjson is None:
|
||||
raise BadRequest("No JSON provided")
|
||||
|
||||
try:
|
||||
if schema["type"]["type"] == "channel_type" and reqjson["name"][-1] == "-":
|
||||
reqjson["name"] = reqjson["name"][:-1]
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
valid = validator.validate(reqjson)
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Reference in New Issue