wrong validation on hp endpoint

This commit is contained in:
Greg Gauthier 2024-06-24 09:12:36 +01:00
parent 5499f1f4df
commit 932f2bdda6

2
app.py
View File

@ -86,7 +86,7 @@ class RollHP(Resource):
@hp.expect(hp_model)
def post(self):
data = api.payload
errors = ability_schema.validate(data)
errors = hp_schema.validate(data)
if errors:
return errors, 400
chartype = data.get('chartype')