Discriminator with Subschema Inheriting All Fields (No Extra Fields)
GET/discriminator-empty-subschema
This schema reproduces a sub-schema that inherits all fields from the parent (via allOf) and does not define any new properties. Schema:
type: object
discriminator:
propertyName: type
mapping:
EmptyType: '#/components/schemas/EmptyType'
properties:
type:
type: string
oneOf:
- $ref: '#/components/schemas/EmptyType'
Responses
- 200
Successful response