Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

Incorrect optionality of attributes #17

Description

The optionality of the attributes is not considered correctly. E.g. in the generated Swagger file, the Patient.gender is said to be required although the conformance statement doesn't. We used

fhir-swagger --fhir_url http://test.fhir.org/r3 --conformance_path="/metadata?_format=application/json" --dstu3 --output r3.json

and got

    ...
    "Patient": {
      "description": "",
      "type": "object",
      "properties": {
        ...
        "gender": {
          "type": "string",
          "minLength": 1
        },
        ...
      },
      "required": [
        "resourceType",
        "id",
        "text",
        "identifier",
        "active",
        "name",
        "gender",
        "photo",
        "contact",
        "managingOrganization",
        "link"
      ]
    },
    ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions