github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/codegen/xml-model.yml (about) 1 swagger: "2.0" 2 3 info: 4 version: "1.0" 5 title: "XML model with xml attributes and custom xml tag name" 6 description: "" 7 8 produces: 9 - "application/xml" 10 11 consumes: 12 - "application/xml" 13 14 paths: 15 '/test': 16 get: 17 responses: 18 '200': 19 description: test endpoint 20 schema: 21 $ref: '#/definitions/XmlWithAttribute' 22 definitions: 23 XmlWithAttribute: 24 type: object 25 required: 26 - author 27 - isPublished 28 properties: 29 id: 30 type: integer 31 xml: 32 attribute: true 33 title: 34 type: string 35 xml: 36 name: 'xml-title' 37 isPublished: 38 type: boolean 39 xml: 40 attribute: true 41 name: published 42 singleChild: 43 type: object 44 $ref: "#/definitions/XmlChild" 45 author: 46 type: string 47 children: 48 type: array 49 items: 50 $ref: "#/definitions/XmlChild" 51 XmlChild: 52 type: object 53 properties: 54 name: 55 type: string 56