I have the following allOf structure:
- $ref: '#/components/schemas/equipmentReference'
- $ref: '#/components/schemas/verifiedGrossMass'
- $ref: '#/components/schemas/weightUnit'
- $ref: '#/components/schemas/cargoGrossWeight'
description: specifies the settings for an active reefer container used to a shipment.
- $ref: '#/components/schemas/temperatureMin'
- $ref: '#/components/schemas/temperatureMax'
- $ref: '#/components/schemas/temperatureUnit'
- $ref: '#/components/schemas/humidityMin'
- $ref: '#/components/schemas/humidityMax'
- $ref: '#/components/schemas/ventilationMin'
- $ref: '#/components/schemas/ventilationMax'
all of the $ref - references are defined in the following manner:
The structure renders correct in SwaggerHub:
But does not validate:
What am I doing wrong? Is there something I have misunderstood?
Go to Solution.
On line 228, change
- type: object
View solution in original post
Thank you for your quick reply