Forum Discussion

bopritchard's avatar
bopritchard
Occasional Contributor
6 years ago

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
    6 years ago
    extension:
      type: array
      items:
        oneOf:
          - $ref: '#/definitions/Race'
          - ...