Skip to content

additionalProperties=false is not set when using default Marshmallow schema options #821

Open
@mwgamble

Description

@mwgamble

The default value for the Marshmallow schema option unknown is RAISE. I expected this to result in additionalProperties: false being set on the generated schema. Unfortunately, this doesn't currently happen. Unless the unknown option is set explicitly, no additionalProperties keyword is added to the generated schema.

Is adding support for this feasible? I don't really want to have to manually add the necessary metadata to all my schemas.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions