github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/1767/flatten-full.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 $ref: '#/definitions/getPatientPatientIdOKBody' 25 put: 26 consumes: 27 - application/fhir+json 28 produces: 29 - application/fhir+json 30 tags: 31 - fhir 32 responses: 33 "200": 34 description: Patient 35 schema: 36 $ref: '#/definitions/putPatientPatientIdOKBody' 37 parameters: 38 - type: string 39 description: patient ID 40 name: patientID 41 in: path 42 required: true 43 definitions: 44 getPatientPatientIdOKBody: 45 allOf: 46 - $ref: '#/definitions/patient' 47 x-go-gen-location: operations 48 identifier: 49 description: v3.1.0-12545 50 type: object 51 title: Identifier 52 required: 53 - use 54 properties: 55 assigner: 56 $ref: '#/definitions/identifierAssigner' 57 system: 58 type: string 59 use: 60 type: string 61 enum: 62 - usual 63 - official 64 - temp 65 - secondary 66 - old 67 example: usual 68 value: 69 description: Some unique value 70 type: string 71 identifierAssigner: 72 description: Organization 73 allOf: 74 - $ref: '#/definitions/identifierAssignerAllOf0' 75 x-go-gen-location: models 76 identifierAssignerAllOf0: 77 description: v3.1.0-12545 78 type: object 79 title: reference 80 properties: 81 display: 82 description: Text alternative for the resource 83 type: string 84 identifier: 85 $ref: '#/definitions/identifierAssignerAllOf0Identifier' 86 reference: 87 description: Literal reference, Relative, internal or absolute URL 88 type: string 89 example: literal reference 90 x-go-gen-location: models 91 identifierAssignerAllOf0Identifier: 92 description: Logical reference, when literal reference is not known 93 allOf: 94 - $ref: '#/definitions/identifier' 95 x-go-gen-location: models 96 patient: 97 type: object 98 title: Info about patient 99 required: 100 - name 101 properties: 102 active: 103 type: boolean 104 id: 105 type: string 106 identifier: 107 description: Identifier 108 type: array 109 items: 110 $ref: '#/definitions/patientIdentifierItems' 111 name: 112 description: Name 113 type: string 114 patientIdentifierItems: 115 allOf: 116 - $ref: '#/definitions/patientIdentifierItemsAllOf0' 117 x-go-gen-location: models 118 patientIdentifierItemsAllOf0: 119 description: v3.1.0-12545 120 type: object 121 title: Identifier 122 required: 123 - use 124 properties: 125 assigner: 126 $ref: '#/definitions/patientIdentifierItemsAllOf0Assigner' 127 system: 128 type: string 129 use: 130 type: string 131 enum: 132 - usual 133 - official 134 - temp 135 - secondary 136 - old 137 example: usual 138 value: 139 description: Some unique value 140 type: string 141 x-go-gen-location: models 142 patientIdentifierItemsAllOf0Assigner: 143 description: Organization 144 allOf: 145 - $ref: '#/definitions/patientIdentifierItemsAllOf0AssignerAllOf0' 146 x-go-gen-location: models 147 patientIdentifierItemsAllOf0AssignerAllOf0: 148 description: v3.1.0-12545 149 type: object 150 title: reference 151 properties: 152 display: 153 description: Text alternative for the resource 154 type: string 155 identifier: 156 $ref: '#/definitions/patientIdentifierItemsAllOf0AssignerAllOf0Identifier' 157 reference: 158 description: Literal reference, Relative, internal or absolute URL 159 type: string 160 example: literal reference 161 x-go-gen-location: models 162 patientIdentifierItemsAllOf0AssignerAllOf0Identifier: 163 description: Logical reference, when literal reference is not known 164 allOf: 165 - $ref: '#/definitions/identifier' 166 x-go-gen-location: models 167 putPatientPatientIdOKBody: 168 allOf: 169 - $ref: '#/definitions/patient' 170 x-go-gen-location: operations 171 parameters: 172 patientID: 173 type: string 174 description: patient ID 175 name: patientID 176 in: path 177 required: true 178 responses: 179 Patient: 180 description: Patient 181 schema: 182 allOf: 183 - $ref: '#/definitions/patient' 184