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

     1  swagger: '2.0'
     2  info:
     3    description: Test for x-order
     4    version: 0.0.1
     5    title: Test for x-order
     6    contact:
     7      email: takano@liberent.co.jp
     8  schemes:
     9    - http
    10  paths:
    11    /user/startSession:
    12      post:
    13        summary: Test for x-order
    14        description: Test for x-order
    15        operationId: StartSession
    16        consumes:
    17          - application/json
    18          - application/x-msgpack-array
    19        produces:
    20          - application/json
    21          - application/x-msgpack-array
    22        parameters:
    23          - in: body
    24            name: clientProfile
    25            description: client profile
    26            required: true
    27            schema:
    28              $ref: '#/definitions/clientProfile'
    29        responses:
    30          '200':
    31            description: successful operation
    32            schema:
    33              $ref: '#/definitions/sessionData'
    34            headers:
    35              X-Server-Time:
    36                type: integer
    37                format: uint64
    38                description: Unixtime
    39              Content-Encoding:
    40                type: string
    41                description: gzip etc
    42          '400':
    43            description: Invalid input
    44          '503':
    45            description: Service in Maintenance.
    46  
    47  definitions:
    48    empty:
    49      type: object
    50    clientProfile:
    51      type: object
    52      properties:
    53        deviceId:
    54          x-order: 0
    55          type: string
    56          description: deveide unique
    57        os:
    58          x-order: 1
    59          type: string
    60          description: 'OS("ios","android","pc")'
    61        appVersion:
    62          x-order: 2
    63          type: string
    64          description: app version
    65        masterVersion:
    66          x-order: 3
    67          type: integer
    68          format: uint64
    69          description: master data version
    70    sessionData:
    71      type: object
    72      properties:
    73        aaa:
    74          type: string
    75          format: string
    76          description: ZZZ
    77        bbb:
    78          type: string
    79          format: string
    80          description: AAA
    81        zzz:
    82          type: string
    83          format: string
    84          description: BBB
    85        sessionId:
    86          x-order: 0
    87          type: string
    88          description: session unique
    89        deviceId:
    90          x-order: 1
    91          x-go-custom-tag: hello1
    92          type: string
    93          description: deveide unique
    94        uMain:
    95          $ref: '#/definitions/u_main'
    96          x-order: 2
    97          x-go-custom-tag: hello2
    98          description: Sample
    99    u_main:
   100      type: object
   101      properties:
   102        uuid:
   103          x-order: 0
   104          type: string
   105          format: string
   106          description: UUID
   107        uid:
   108          x-order: 1
   109          type: integer
   110          format: uint32
   111          description: public user id
   112        name:
   113          x-order: 2
   114          type: string
   115          format: string
   116          description: user name
   117        ts:
   118          x-order: 3
   119          type: integer
   120          format: uint64
   121          description: registerd timestamp