Skip to content

Flask_apispec version of @use_kwargs not compatible with unknown parameter #242

Open
@quaxsze

Description

@quaxsze

When using @use_kwargs with the unknown parameter, to be able to use the unknown parameter of the schema, as described here in the webargs documentation:

class RandomSchema(Schema):
    class Meta:
        unknown = EXCLUDE

@use_kwargs(RandomSchema, location="json", unknown=None)

The following exception is raised:
TypeError: schema2parameters() got an unexpected keyword argument 'unknown'
Would it be possible for flask_apispec version of @use_kwargs to support this parameter?
I could use the webargs version of @use_kwargs but it won't annotate the schema for swagger isn't it?

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