github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/1536/fixture-1536-3-flat.yaml (about)

     1  ---
     2    swagger: "2.0"
     3    info: 
     4      description: "repro issue 1537"
     5      title: "param body with maps"
     6      license: 
     7        name: "Apache 2.0"
     8        url: "http://www.apache.org/licenses/LICENSE-2.0.html"
     9      version: "0.0.1"
    10    paths: 
    11      /getArray: 
    12        get: 
    13          operationId: "getArray"
    14          parameters: 
    15            - 
    16              name: "arrayOfObject"
    17              in: "body"
    18              required: true
    19              schema: 
    20                type: "array"
    21                items: 
    22                  $ref: "#/definitions/modelObject"
    23          responses: 
    24            200: 
    25              description: "OK"
    26      /getArrayNested: 
    27        get: 
    28          operationId: "getArrayNested"
    29          parameters: 
    30            - 
    31              name: "arrayOfarray"
    32              in: "body"
    33              required: true
    34              schema: 
    35                type: "array"
    36                items: 
    37                  type: "array"
    38                  items: 
    39                    $ref: "#/definitions/modelObject"
    40          responses: 
    41            200: 
    42              description: "OK"
    43      /getArrayNestedSimple: 
    44        get: 
    45          operationId: "getArrayNestedSimple"
    46          parameters: 
    47            - 
    48              name: "arrayOfarraySimple"
    49              in: "body"
    50              required: true
    51              schema: 
    52                type: "array"
    53                items: 
    54                  type: "array"
    55                  items: 
    56                    type: "string"
    57                    maxLength: 100
    58          responses: 
    59            200: 
    60              description: "OK"
    61      /getArrayOfInterface: 
    62        get: 
    63          operationId: "getArrayOfInterface"
    64          parameters: 
    65            - 
    66              name: "arrayOfInterface"
    67              in: "body"
    68              required: true
    69              schema: 
    70                type: "array"
    71                items: 
    72                  type: "object"
    73                  additionalProperties: true
    74          responses: 
    75            200: 
    76              description: "OK"
    77      /getArrayOfMap: 
    78        get: 
    79          operationId: "getArrayOfMap"
    80          parameters: 
    81            - 
    82              name: "arrayOfMap"
    83              in: "body"
    84              required: true
    85              schema: 
    86                type: "array"
    87                maxItems: 50
    88                items: 
    89                  type: "object"
    90                  additionalProperties: 
    91                    type: "array"
    92                    maxItems: 10
    93                    items: 
    94                      type: "integer"
    95                      format: "int32"
    96                      maximum: 100
    97          responses: 
    98            200: 
    99              description: "OK"
   100      /getMapAnonArray: 
   101        get: 
   102          operationId: "getMapAnonArray"
   103          parameters: 
   104            - 
   105              name: "mapOfAnonArray"
   106              in: "body"
   107              required: true
   108              schema: 
   109                type: "object"
   110                additionalProperties: 
   111                  type: "array"
   112                  items: 
   113                    type: "integer"
   114                    minimum: 0
   115          responses: 
   116            200: 
   117              description: "OK"
   118      /getMapArray: 
   119        get: 
   120          operationId: "getMapArray"
   121          parameters: 
   122            - 
   123              name: "mapOfArray"
   124              in: "body"
   125              required: true
   126              schema: 
   127                $ref: "#/definitions/getMapArrayParamsBody"
   128          responses: 
   129            200: 
   130              description: "OK"
   131      /getMapArrayWithMax: 
   132        get: 
   133          operationId: "getMapArrayWithMax"
   134          parameters: 
   135            - 
   136              name: "mapOfArrayWithMax"
   137              in: "body"
   138              required: true
   139              schema: 
   140                type: "object"
   141                additionalProperties: 
   142                  $ref: "#/definitions/modelArrayWithMax"
   143          responses: 
   144            200: 
   145              description: "OK"
   146      /getMapInterface: 
   147        get: 
   148          operationId: "getMapInterface"
   149          parameters: 
   150            - 
   151              name: "mapOfInterface"
   152              in: "body"
   153              required: true
   154              schema: 
   155                type: "object"
   156                additionalProperties: 
   157                  $ref: "#/definitions/modelInterface"
   158          responses: 
   159            200: 
   160              description: "OK"
   161      /getMapObject: 
   162        get: 
   163          operationId: "getMapObject"
   164          parameters: 
   165            - 
   166              name: "mapOfObject"
   167              in: "body"
   168              required: true
   169              schema: 
   170                $ref: "#/definitions/getMapObjectParamsBody"
   171          responses: 
   172            200: 
   173              description: "OK"
   174      /getMapOfAnonArray: 
   175        get: 
   176          operationId: "getMapOfAnonArray"
   177          parameters: 
   178            - 
   179              name: "mapOfAnonArray"
   180              in: "body"
   181              required: true
   182              schema: 
   183                type: "object"
   184                additionalProperties: 
   185                  type: "array"
   186                  maxItems: 10
   187                  items: 
   188                    type: "integer"
   189                    maximum: 100
   190          responses: 
   191            200: 
   192              description: "OK"
   193      /getMapOfAnonMap: 
   194        get: 
   195          operationId: "getMapOfAnonMap"
   196          parameters: 
   197            - 
   198              name: "mapOfAnonMap"
   199              in: "body"
   200              required: true
   201              schema: 
   202                type: "object"
   203                additionalProperties: 
   204                  type: "object"
   205                  additionalProperties: 
   206                    type: "array"
   207                    items: 
   208                      type: "integer"
   209                      maximum: 100
   210          responses: 
   211            200: 
   212              description: "OK"
   213      /getMapOfMap: 
   214        get: 
   215          operationId: "getMapOfMap"
   216          parameters: 
   217            - 
   218              name: "mapOfMap"
   219              in: "body"
   220              required: true
   221              schema: 
   222                type: "object"
   223                additionalProperties: 
   224                  type: "object"
   225                  additionalProperties: 
   226                    $ref: "#/definitions/modelArrayWithMax"
   227          responses: 
   228            200: 
   229              description: "OK"
   230    definitions: 
   231      getMapArrayParamsBody: 
   232        type: "object"
   233        additionalProperties: 
   234          $ref: "#/definitions/modelArray"
   235        x-go-gen-location: "operations"
   236      getMapObjectParamsBody: 
   237        type: "object"
   238        additionalProperties: 
   239          $ref: "#/definitions/modelObject"
   240        x-go-gen-location: "operations"
   241      modelArray: 
   242        type: "array"
   243        items: 
   244          $ref: "#/definitions/modelArrayItems"
   245      modelArrayItems: 
   246        type: "object"
   247        properties: 
   248          aNum: 
   249            type: "integer"
   250            maximum: 10
   251        x-go-gen-location: "models"
   252      modelArrayWithMax: 
   253        type: "array"
   254        maxItems: 10
   255        items: 
   256          type: "object"
   257      modelInterface: 
   258        type: "object"
   259        additionalProperties: true
   260      modelObject: 
   261        type: "object"
   262        properties: 
   263          aProp: 
   264            type: "string"
   265            format: "hostname"
   266