Skip to content
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.

Require decorator #6

Open
4 tasks
danieldaeschle opened this issue Mar 23, 2018 · 0 comments
Open
4 tasks

Require decorator #6

danieldaeschle opened this issue Mar 23, 2018 · 0 comments
Assignees
Labels
feature The issue is a new feature

Comments

@danieldaeschle
Copy link
Owner

danieldaeschle commented Mar 23, 2018

Description

Expect decorator

@require(MyMarshmallowSchema)
def root():
...

It should automatically validates the incoming payload.
If the payload doesn't pass it should return an HTTP error 400 with the description.

It should only works with:

  • POST
  • PUT

Todo

  • Create it
  • Only PUT and POST
  • Return Error 400 on error
  • Unit tests
@danieldaeschle danieldaeschle self-assigned this Mar 23, 2018
@danieldaeschle danieldaeschle added the feature The issue is a new feature label Mar 23, 2018
@danieldaeschle danieldaeschle changed the title [Feature] Require decorator Require decorator Mar 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature The issue is a new feature
Projects
None yet
Development

No branches or pull requests

1 participant