github.com/kaisawind/go-swagger@v0.19.0/fixtures/codegen/todolist.arrayform.yml (about)

     1  swagger: '2.0'
     2  
     3  info:
     4    version: "1.0.0"
     5    title: Private to-do list
     6    description: |
     7      A very simple api description that makes a json only API to submit to do's.
     8  
     9  produces:
    10    - application/json
    11  
    12  consumes:
    13    - application/json
    14  
    15  paths:
    16    /arrayValueForm/{id}:
    17      get:
    18        operationId: arrayFormParams
    19        summary: all possible array value form parameters
    20        description: Used to see if a codegen can render all the possible parameter variations for a array form param
    21        tags:
    22          - testcgen
    23        parameters:
    24          - name: id
    25            in: path
    26            type: integer
    27            format: int32
    28            description: The id of the task
    29            required: true
    30            minimum: 1
    31          - name: siString
    32            in: formData
    33            type: array
    34            items:
    35              minLength: 5
    36              maxLength: 50
    37              pattern: "[A-Z][\\w-]+"
    38              type: string
    39            description: a simple string array
    40            required: true
    41            minItems: 5
    42            maxItems: 50
    43            collectionFormat: csv
    44          - name: siNested
    45            in: query
    46            type: array
    47            items:
    48              type: array
    49              items:
    50                type: array
    51                items:
    52                  minLength: 5
    53                  maxLength: 50
    54                  pattern: "[A-Z][\\w-]+"
    55                  type: string
    56            description: a simple string array
    57            required: true
    58            minItems: 5
    59            maxItems: 50
    60            collectionFormat: csv
    61          - name: siInt
    62            in: formData
    63            description: an integer array property
    64            type: array
    65            minItems: 5
    66            maxItems: 50
    67            collectionFormat: pipes
    68            items:
    69              type: integer
    70              multipleOf: 2
    71              minimum: 8
    72              exclusiveMinimum: true
    73              maximum: 100
    74              exclusiveMaximum: true
    75          - name: siInt32
    76            in: formData
    77            description: an int32 integer array property
    78            type: array
    79            minItems: 5
    80            maxItems: 50
    81            collectionFormat: tsv
    82            items:
    83              type: integer
    84              format: int32
    85              multipleOf: 2
    86              minimum: 8
    87              exclusiveMinimum: true
    88              maximum: 100
    89              exclusiveMaximum: true
    90          - name: siInt64
    91            in: formData
    92            description: an int64 integer array property
    93            type: array
    94            minItems: 5
    95            maxItems: 50
    96            collectionFormat: ssv
    97            items:
    98              type: integer
    99              format: int64
   100              multipleOf: 2
   101              minimum: 8
   102              exclusiveMinimum: true
   103              maximum: 100
   104              exclusiveMaximum: true
   105            required: true
   106          - name: siFloat
   107            in: formData
   108            description: a float array property
   109            type: array
   110            minItems: 5
   111            maxItems: 50
   112            collectionFormat: multi
   113            items:
   114              type: number
   115              multipleOf: 1.5
   116              minimum: 3
   117              exclusiveMinimum: true
   118              maximum: 100
   119              exclusiveMaximum: true
   120          - name: siFloat32
   121            in: formData
   122            description: a float32 float array property
   123            type: array
   124            minItems: 5
   125            maxItems: 50
   126            items:
   127              type: number
   128              format: float
   129              multipleOf: 1.5
   130              minimum: 3
   131              exclusiveMinimum: true
   132              maximum: 100
   133              exclusiveMaximum: true
   134          - name: siFloat64
   135            in: formData
   136            description: a float64 float array property
   137            type: array
   138            minItems: 5
   139            maxItems: 50
   140            collectionFormat: pipes
   141            items:
   142              type: number
   143              format: double
   144              multipleOf: 1.5
   145              minimum: 3
   146              exclusiveMinimum: true
   147              maximum: 100
   148              exclusiveMaximum: true
   149            required: true
   150          - name: siBool
   151            description: a boolean array property
   152            in: formData
   153            type: array
   154            minItems: 5
   155            maxItems: 50
   156            collectionFormat: ssv
   157            items:
   158              type: boolean
   159            required: true
   160        responses:
   161          default:
   162            description: Generic Error
   163          200:
   164            description: Task list result
   165            schema:
   166              $ref: "#/definitions/Task"
   167  
   168  definitions:
   169    Task:
   170      title: A Task object
   171      description: |
   172        This describes a task. Tasks require a content property to be set.
   173      required:
   174        - content
   175      type: object
   176      properties:
   177        id:
   178          title: the unique id of the task
   179          description: |
   180            This id property is autogenerated when a task is created.
   181          type: integer
   182          format: int64
   183          readOnly: true
   184        content:
   185          title: The content of the task
   186          description: |
   187            Task content can contain [GFM](https://help.github.com/articles/github-flavored-markdown/).
   188          type: string
   189          minLength: 5
   190        completed:
   191          title: when true this task is completed
   192          type: boolean
   193        creditcard:
   194          title: the credit card format usage
   195          type: string
   196          format: creditcard
   197        createdAt:
   198          title: task creation time
   199          type: string
   200          format: date-time
   201          readOnly: true
   202  
   203