Forum Discussion

bopritchard's avatar
bopritchard
Occasional Contributor
5 years ago
Solved

How to express an array in a swagger definition

How can I express an array of objects in a defition. Here's the sample json { "resourceType": "Patient", "extension": [{ "url": "http://hl7.org/fhir/StructureDefinition/us-core-race", "ex...
  • RonRatovsky's avatar
    RonRatovsky
    5 years ago
    extension:
      type: array
      items:
        oneOf:
          - $ref: '#/definitions/Race'
          - ...