HenrikHL
2 years agoFrequent Contributor
Feature or Bug?
It seems like the rendering of the Yaml spec has recently changed. When an attribute is "unfolded":
Then it does not seem like it is possible again to "fold" the object:
Is this a feature or a bug?
Also it seems strange that "simple-types" need to be unfolded? This was rendered differently a couple of weeks ago?
Below is the corresponding YAML:
reference:
type: object
description: |
references provided by the shipper or freight forwarder at the time of booking or at the time of providing shipping instruction. Carriers share it back when providing track and trace event updates, some are also printed on the B/L. Customers can use these references to track shipments in their internal systems.
properties:
type:
$ref: '#/components/schemas/referenceType'
value:
$ref: '#/components/schemas/referenceValue'
required:
- type
- value
referenceType:
type: string
description: ...
enum:
- FF
- SI
example: FF
referenceValue:
type: string
maxLength: 100
description: The actual value of the reference.