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

     1  swagger: "2.0"
     2  info:
     3    description: "Business Sub API"
     4    version: "1.0.0"
     5    title: "Business Sub-API"
     6  
     7  host: "127.0.0.1:8080"
     8  basePath: "/rest/ms"
     9  
    10  tags:
    11    - name: "business"
    12      description: "business info"
    13      externalDocs:
    14        description: "Find out more"
    15        url: "http://swagger.io"
    16  
    17  paths:
    18    /business:
    19      post:
    20        summary: Create a business
    21        operationId: createBusiness
    22        tags:
    23          - "business"
    24        parameters:
    25          - name: body
    26            in: body
    27            required: true
    28            schema:
    29              $ref: '#/definitions/Business'
    30        responses:
    31          200:
    32            description: OK
    33            schema:
    34              type: object
    35  definitions:
    36    Business:
    37      type: object
    38      properties:
    39        children:
    40          type: array
    41          x-go-custom-tag: bson:"-"
    42          items:
    43            $ref: '#/definitions/Business'
    44        users:
    45          type: array
    46          x-go-custom-tag: bson:"users"
    47          items:
    48            type: object
    49            properties:
    50              role:
    51                type: string
    52                x-go-custom-tag: bson:"role"
    53