github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/1767/flatten.yaml (about)

     1  schemes:
     2  - http
     3  swagger: "2.0"
     4  info:
     5    description: |
     6      #### FHIR API
     7    title: FHIR API
     8    version: 1.0.0
     9  host: fhir.test.lan
    10  basePath: /
    11  paths:
    12    /Patient/{patientID}:
    13      get:
    14        consumes:
    15        - application/fhir+json
    16        produces:
    17        - application/fhir+json
    18        tags:
    19        - fhir
    20        responses:
    21          "200":
    22            description: Patient
    23            schema:
    24              allOf:
    25              - $ref: '#/definitions/patient'
    26      put:
    27        consumes:
    28        - application/fhir+json
    29        produces:
    30        - application/fhir+json
    31        tags:
    32        - fhir
    33        responses:
    34          "200":
    35            description: Patient
    36            schema:
    37              allOf:
    38              - $ref: '#/definitions/patient'
    39      parameters:
    40      - type: string
    41        description: patient ID
    42        name: patientID
    43        in: path
    44        required: true
    45  definitions:
    46    identifier:
    47      description: v3.1.0-12545
    48      type: object
    49      title: Identifier
    50      required:
    51      - use
    52      properties:
    53        assigner:
    54          description: Organization
    55          allOf:
    56          - description: v3.1.0-12545
    57            type: object
    58            title: reference
    59            properties:
    60              display:
    61                description: Text alternative for the resource
    62                type: string
    63              identifier:
    64                description: Logical reference, when literal reference is not known
    65                allOf:
    66                - $ref: '#/definitions/identifier'
    67              reference:
    68                description: Literal reference, Relative, internal or absolute URL
    69                type: string
    70                example: literal reference
    71        system:
    72          type: string
    73        use:
    74          type: string
    75          enum:
    76          - usual
    77          - official
    78          - temp
    79          - secondary
    80          - old
    81          example: usual
    82        value:
    83          description: Some unique value
    84          type: string
    85    patient:
    86      type: object
    87      title: Info about patient
    88      required:
    89      - name
    90      properties:
    91        active:
    92          type: boolean
    93        id:
    94          type: string
    95        identifier:
    96          description: Identifier
    97          type: array
    98          items:
    99            allOf:
   100            - description: v3.1.0-12545
   101              type: object
   102              title: Identifier
   103              required:
   104              - use
   105              properties:
   106                assigner:
   107                  description: Organization
   108                  allOf:
   109                  - description: v3.1.0-12545
   110                    type: object
   111                    title: reference
   112                    properties:
   113                      display:
   114                        description: Text alternative for the resource
   115                        type: string
   116                      identifier:
   117                        description: Logical reference, when literal reference is not
   118                          known
   119                        allOf:
   120                        - $ref: '#/definitions/identifier'
   121                      reference:
   122                        description: Literal reference, Relative, internal or absolute
   123                          URL
   124                        type: string
   125                        example: literal reference
   126                system:
   127                  type: string
   128                use:
   129                  type: string
   130                  enum:
   131                  - usual
   132                  - official
   133                  - temp
   134                  - secondary
   135                  - old
   136                  example: usual
   137                value:
   138                  description: Some unique value
   139                  type: string
   140        name:
   141          description: Name
   142          type: string
   143  parameters:
   144    patientID:
   145      type: string
   146      description: patient ID
   147      name: patientID
   148      in: path
   149      required: true
   150  responses:
   151    Patient:
   152      description: Patient
   153      schema:
   154        allOf:
   155        - $ref: '#/definitions/patient'
   156