You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, here are two attributes referring to two such Core types (Text and Numeric):
serviceMode:
description: 'The scope of the consignment, such as CY-CY or SD-SD.'
allOf:
- $ref: '#/components/schemas/Text'
- type: object
transportEquipmentQuantity:
description: >-
A number of pieces of transport equipment, such as containers or
similar unit load devices, in this consignment.
allOf:
- $ref: '#/components/schemas/Numeric'
- type: object
...
Text:
description: ''
type: object
properties: {}
Numeric:
description: ''
type: object
properties: {}
Nowhere is it actually specified that these are string and number types. In fact, they are specified as objects twice - both in the attribute and in the referred type.
A functioning export of the above example would be:
serviceMode:
description: 'The scope of the consignment, such as CY-CY or SD-SD.'
allOf:
- $ref: '#/components/schemas/Text'
transportEquipmentQuantity:
description: >-
A number of pieces of transport equipment, such as containers or
similar unit load devices, in this consignment.
allOf:
- $ref: '#/components/schemas/Numeric'
...
Text:
description: ''
type: string
Numeric:
description: ''
type: string
The text was updated successfully, but these errors were encountered:
The Core types are exported as generic
object
sFor example, here are two attributes referring to two such Core types (Text and Numeric):
Nowhere is it actually specified that these are
string
andnumber
types. In fact, they are specified asobject
s twice - both in the attribute and in the referred type.A functioning export of the above example would be:
The text was updated successfully, but these errors were encountered: