advanced-rest-client / api-type-document

⛔️ DEPRECATED This component is being deprecated. Use `api-documentation` instead.
0 stars 2 forks source link

[W-13547158] Empty any of list #74

Closed carowright closed 1 year ago

carowright commented 1 year ago

Bug: When defining a schema with a property as a list of anyOf options, we were not showing the options available

e.g.

Patient:
      type: object
      description: The Patient resource exposed by the NHI.
      properties:
        extension-anyOf:
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/Extension1'
              - $ref: '#/components/schemas/Extension2'
              - $ref: '#/components/schemas/Extension3'

Fix: correctly read amf model, this information is stored under or key

Screenshot 2023-06-27 at 12 26 38