You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
greyli
changed the title
Method delete can't run
Using empty dict as schema in output decorator causes AttributeError: 'dict' object has no attribute 'many'
Apr 3, 2021
code:
@app.delete('/pets/<int:pet_id>') @output({}, 204) def delete_pet(pet_id): if pet_id > len(pets) - 1: abort_json(404) pets.pop(pet_id) return ''
shell:
curl -v -X DELETE localhost:5000/pets/0
error:
AttributeError: 'dict' object has no attribute 'many'
The text was updated successfully, but these errors were encountered: