Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Update examples to use this.request.body from koa-better-body #5

@cat2608

Description

@cat2608

Using koa-better-body we must to add the option 'fields': 'body'due koa-validation requires this.request.body instead this.body:

app.use(koaBody({
    'multipart': true,
    'fields': 'body',
}));

https://github.com/srinivasiyer/koa-validation/blob/master/lib/validate.js#L17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions