Skip to content

Add checking for additionalProperties in object definitions #741

@ghost

Description

I would like to propose a new validation.

When a schema type is object, ensure that additionalProperties is present.

Rationale:
It is typically an error when an object includes a property that is not listed in its spec.
It would therefore be nice to have a validation that ensures that we forbid additional properties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions