github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/1392/fixture-1392-4.yaml (about)

     1  swagger: "2.0"
     2  info:
     3    title: Bug Demo
     4    description: Test various body param configurations, with the exception of additionalProperties and additionalItems
     5    version: "0.1.0"
     6  schemes:
     7    - http
     8  produces:
     9    - application/json
    10  consumes:
    11    - application/json
    12  parameters:
    13    btest01:
    14      in: body
    15      name: myObject
    16      schema:
    17        $ref: '#/definitions/aNumberValidable'
    18    btest02:
    19      in: body
    20      name: myObject
    21      schema:
    22        $ref: '#/definitions/aSimpleArray'
    23    btest03:
    24      in: body
    25      name: myObject
    26      schema:
    27        $ref: '#/definitions/aComplexObject'
    28    btest04:
    29      in: body
    30      name: myObject
    31      schema:
    32        $ref: '#/definitions/aPrimitive'
    33    btest05:
    34      in: body
    35      name: myObject
    36      schema:
    37        $ref: '#/definitions/aPrimitiveNumber'
    38    btest06:
    39      in: body
    40      name: myObject
    41      schema:
    42        $ref: '#/definitions/aPrimitiveValidable'
    43    btest07:
    44      in: body
    45      name: myObject
    46      schema:
    47        $ref: '#/definitions/anAliasedPrimitive'
    48    btest08:
    49      in: body
    50      name: myObject
    51      schema:
    52        $ref: '#/definitions/anAliasedPrimitiveValidable'
    53    btest09:
    54      in: body
    55      name: myObject
    56      schema:
    57        $ref: '#/definitions/anAliasedObject'
    58    btest10:
    59      in: body
    60      name: myObject
    61      schema:
    62        $ref: '#/definitions/anAliasedObject2'
    63    btest11:
    64      in: body
    65      name: myObject
    66      schema:
    67        $ref: '#/definitions/anAliasedArray'
    68    btest12:
    69      in: body
    70      name: myObject
    71      schema:
    72        $ref: '#/definitions/aPrimitiveArray'
    73    btest13:
    74      in: body
    75      name: myObject
    76      schema:
    77        $ref: '#/definitions/anInterface'
    78    btest15:
    79      in: body
    80      name: myObject
    81      schema:
    82        $ref: '#/definitions/anArrayOfInterfaces'
    83    btest16:
    84      in: body
    85      name: myObject
    86      schema:
    87        $ref: '#/definitions/aNestedArray'
    88  paths:
    89    /bodybuilder27:
    90      post:
    91        operationId: PostBodybuilder27
    92        description: body btest27
    93        parameters:
    94        - in: body
    95          name: myObject
    96          schema:
    97            type: array
    98            items:
    99              type: array
   100              items:
   101                type: string
   102                format: date
   103                enum:
   104                  - 1992-01-01
   105                  - 2012-01-01
   106              enum:
   107                -
   108                  - 1992-01-01
   109                  - 2012-01-01
   110            enum:
   111              -
   112                -
   113                  - 1992-01-01
   114                  - 2012-01-01
   115        responses:
   116        responses:
   117          default:
   118            description: an error
   119  definitions:
   120    aNumberValidable:
   121      type: integer
   122      minimum: 10
   123      maximum: 100
   124    aSimpleArray:
   125      type: array
   126      items:
   127        type: string
   128        enum: [a,b]
   129    aComplexObject:
   130      type: object
   131      required: [prop1]
   132      properties:
   133        prop1:
   134          type: string
   135          format: uri
   136        prop2:
   137          type: string
   138          enum:
   139            - a
   140            - b
   141    aPrimitive:
   142      type: string
   143      minLength: 10
   144    aPrimitiveNumber:
   145      type: integer 
   146      format: uint32
   147      multipleOf: 10
   148    aPrimitiveValidable:
   149      type: string
   150      enum: [ primitive, civilized, outofthisworld ]
   151    anAliasedPrimitive:
   152      type: string
   153      format: uri
   154    anAliasedPrimitiveValidable:
   155      type: string
   156      format: duration
   157    anAliasedObject:
   158      $ref: '#/definitions/aComplexObject'
   159    anAliasedObject2:
   160      $ref: '#/definitions/anAliasedPrimitiveValidable'
   161    anAliasedArray:
   162      type: array
   163      maxItems: 6
   164      items:
   165        type: string
   166        format: uuid
   167    aPrimitiveArray:
   168      type: array
   169      maxItems: 6
   170      items:
   171        type: integer
   172        format: uint32
   173    anInterface:
   174      type: string 
   175      format: binary
   176      #anObjectOfInterfaces:
   177      #type: object
   178      #properties:
   179      #  aReader:
   180      #   type: string 
   181      #  format: binary
   182    anArrayOfInterfaces:
   183      type: array
   184      maxItems: 6
   185      items:
   186        type: string 
   187        format: binary
   188    aNestedArray:
   189      type: array 
   190      maxItems: 6
   191      items:
   192        type: array
   193        uniqueItems: true
   194        items:
   195          type: string
   196          format: date