Closed jskov-jyskebank-dk closed 6 months ago
Identification is invalid, as it is missing anyof for binding to sub-types. Discriminator alone is not enough (according to spec and editor.swagger.io)
Spec contains an example without:
components:
schemas:
Pet:
type: object
required:
- petType
properties:
petType:
type: string
discriminator:
propertyName: petType
mapping:
dog: Dog
Cat:
allOf:
- $ref: '#/components/schemas/Pet'
- type: object
# all other properties specific to a `Cat`
properties:
name:
type: string
Dog:
allOf:
- $ref: '#/components/schemas/Pet'
- type: object
# all other properties specific to a `Dog`
properties:
bark:
type: string
Lizard:
allOf:
- $ref: '#/components/schemas/Pet'
- type: object
# all other properties specific to a `Lizard`
properties:
lovesRocks:
type: boolean
So should probably just do it without option (not sure if parser finds the binding, but can make a reverse binding)
Fixed via list->set parent change in 0.10.10
This example (customerRoomV3) renders
Identification
as abstract, but the three subtypes does not extend it.(MM)