github.com/kaisawind/go-swagger@v0.19.0/fixtures/codegen/todolist.simplepath.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    /singleValuePath/{siString}/{siInt}/{siInt32}/{siInt64}/{siFloat}/{siFloat32}/{siFloat64}/{siBool}:
    17      get:
    18        operationId: simplePathParams
    19        summary: all possible single value path parameters
    20        description: Used to see if a codegen can render all the possible parameter variations for a header param
    21        tags:
    22          - testcgen
    23        parameters:
    24          - name: siString
    25            in: path
    26            type: string
    27            description: a simple string
    28            required: true
    29            minLength: 5
    30            maxLength: 50
    31            pattern: "[A-Z][\\w-]+"
    32          - name: siInt
    33            in: path
    34            type: integer
    35            description: an integer  property
    36            required: true
    37            multipleOf: 2
    38            minimum: 8
    39            exclusiveMinimum: true
    40            maximum: 100
    41            exclusiveMaximum: true
    42          - name: siInt32
    43            in: path
    44            type: integer
    45            format: int32
    46            description: an int32 integer property
    47            required: true
    48            multipleOf: 2
    49            minimum: 8
    50            exclusiveMinimum: true
    51            maximum: 100
    52            exclusiveMaximum: true
    53          - name: siInt64
    54            in: path
    55            type: integer
    56            format: int64
    57            description: an int64 integer property
    58            multipleOf: 2
    59            minimum: 8
    60            exclusiveMinimum: true
    61            maximum: 100
    62            exclusiveMaximum: true
    63            required: true
    64          - name: siFloat
    65            in: path
    66            type: number
    67            required: true
    68            description: a float property
    69            multipleOf: 1.5
    70            minimum: 3
    71            exclusiveMinimum: true
    72            maximum: 100
    73            exclusiveMaximum: true
    74          - name: siFloat32
    75            in: path
    76            type: number
    77            format: float
    78            description: a float32 float property
    79            required: true
    80            multipleOf: 1.5
    81            minimum: 3
    82            exclusiveMinimum: true
    83            maximum: 100
    84            exclusiveMaximum: true
    85          - name: siFloat64
    86            in: path
    87            type: number
    88            format: double
    89            description: a float64 float property
    90            multipleOf: 1.5
    91            required: true
    92            minimum: 3
    93            exclusiveMinimum: true
    94            maximum: 100
    95            exclusiveMaximum: true
    96            required: true
    97          - name: siBool
    98            in: path
    99            type: boolean
   100            description: a boolean property
   101            required: true
   102  
   103        responses:
   104          default:
   105            description: Generic Error
   106          200:
   107            description: Task list result
   108            schema:
   109              $ref: "#/definitions/Task"
   110  
   111  definitions:
   112    Task:
   113      title: A Task object
   114      description: |
   115        This describes a task. Tasks require a content property to be set.
   116      required:
   117        - content
   118      type: object
   119      properties:
   120        id:
   121          title: the unique id of the task
   122          description: |
   123            This id property is autogenerated when a task is created.
   124          type: integer
   125          format: int64
   126          readOnly: true
   127        content:
   128          title: The content of the task
   129          description: |
   130            Task content can contain [GFM](https://help.github.com/articles/github-flavored-markdown/).
   131          type: string
   132          minLength: 5
   133        completed:
   134          title: when true this task is completed
   135          type: boolean
   136        creditcard:
   137          title: the credit card format usage
   138          type: string
   139          format: creditcard
   140        createdAt:
   141          title: task creation time
   142          type: string
   143          format: date-time
   144          readOnly: true
   145  
   146