Fix enum error

This commit is contained in:
amcmanu3 2024-08-06 18:31:05 -04:00
parent 8b39ba5549
commit 877bed1016

View File

@ -37,9 +37,16 @@ class UsersController:
permission.name permission.name
for permission in PermissionsCrafty.get_permissions_list() for permission in PermissionsCrafty.get_permissions_list()
], ],
"error": "enumErr",
"fill": True,
}, },
"quantity": {"type": "number", "minimum": -1, "error": "typeInteger"}, "quantity": {
"enabled": {"type": "boolean", "error": "typeBool"}, "type": "number",
"minimum": -1,
"error": "typeInteger",
"fill": True,
},
"enabled": {"type": "boolean", "error": "typeBool", "fill": True},
} }
self.user_jsonschema_props: t.Final = { self.user_jsonschema_props: t.Final = {
"username": { "username": {