Skip to content

@odata.type is marked required in the OpenAPI schemas but is omitted from most GET responses #1166

Description

@RisinuWijesinghe

Graph v1.0 OpenAPI description, @odata.type is included in the required array of many entity schemas. However, Graph does not return @odata.type in most GET responses, it's emitted only for polymorphic instances where the concrete type differs from the declared type. This makes the spec internally inconsistent and response that conforms to the API contradicts its own schema's required constraint.

Reproduction
GET /teams/{team-id} the returned team object has no @odata.type, yet the schema marks it required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions