github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/2216/swagger-single.yml (about)

     1  swagger: '2.0'
     2  info:
     3    title: Test API
     4    description: Test
     5    version: v1
     6  host: host
     7  schemes:
     8  - https
     9  - http
    10  basePath: /path
    11  produces:
    12  - application/json
    13  
    14  paths:
    15    /obj:
    16      get:
    17        summary: Get an object
    18        operationId: getObject
    19        responses:
    20          200:
    21            description: The object
    22            schema:
    23              $ref: '#/definitions/MyObject'
    24  
    25  definitions:
    26    MyObject:
    27      title: My object
    28      type: object
    29      properties:
    30        string1:
    31          type: string
    32          title: A string
    33        bool1:
    34          type: boolean
    35          title: A boolean
    36      default:
    37        string1: "first"
    38        bool1:   false