Skip to content

Comment on removeAdditional is unclear #140

@G0maa

Description

@G0maa

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

Hello,

In this Docs link
I believe that the // remove additional properties comment is kind of unclear, meaning: when I read it I assumed that by default any additional properties would get removed automatically, which isn't the case.

Additional properties get removed only when their JSON Schema has additionalProperties: false, see this issue.

My suggestions is to simply change the comment to mention this small but important detail.

There's other places where removeAdditional is mentioned like here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions