Skip to content

ValueError: dictionary update sequence element #0 has length 3; 2 is required #55

@v-v-vishnevskiy

Description

@v-v-vishnevskiy

This happens when I try to send something like this in body:

[
  {"name": "John"},
  {"name": "Max"}
]

with appropriate request schema.

The error in this line https://github.com/maximdanilchenko/aiohttp-apispec/blame/master/aiohttp_apispec/middlewares.py#L37
kwargs is dictionary and can't update with list or tuple.

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