github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2071/fixture-2071.yaml (about)

     1  ---
     2    swagger: "2.0"
     3    info:
     4      title: "gen operation with body param, --skip-flatten mode"
     5      version: "0.0.1"
     6      description: "repro issue 1537"
     7      license:
     8        name: "Apache 2.0"
     9        url: "http://www.apache.org/licenses/LICENSE-2.0.html"
    10    paths:
    11      /getPet:
    12        get:
    13          responses:
    14            200:
    15              description: "OK"
    16              schema:
    17                $ref: '#/definitions/Pet'
    18      /getCat:
    19        get:
    20          responses:
    21            200:
    22              description: "OK"
    23              schema:
    24                $ref: '#/definitions/Cat'
    25  
    26    definitions:
    27      Pet:
    28          type: object
    29          properties:
    30              name:
    31                  type: string
    32                  x-go-name: Name
    33                  x-nullable: true
    34      Cat:
    35          allOf:
    36              - $ref: "#/definitions/Pet"
    37              - type: "object"
    38                properties:
    39                  ability:
    40                      type: string
    41                      x-go-name: SomeAbility
    42                      x-nullable: true