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.
Graph v1.0 OpenAPI description,
@odata.typeis included in the required array of many entity schemas. However, Graph does not return@odata.typein 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.