Skip to content

Breaking change false positive when adding "type: object" to schema with "properties" #208

Closed
@mikekistler

Description

@mikekistler

openapi-diff currently reports a breaking change when a schema that previously had no "type" field but did have "properties" adds "type: object" in the new API definition.

The new version has a different type 'object' than the previous one ''.

ref: Azure/azure-rest-api-specs#14830

A schema that contains "properties" should be considered to be implicitly "type: object" so making that explicit in the API definition should not be flagged as a breaking change.

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