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

Require decorator #6

@danieldaeschle

Description

@danieldaeschle

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

Metadata

Metadata

Labels

featureThe issue is a new feature

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions