github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2919/edge-api/shared/sessions.yml (about)

     1  ---
     2  
     3  responses:
     4    listSessions:
     5      description: A list of sessions
     6      schema:
     7        $ref: '#/definitions/listSessionsEnvelope'
     8    detailSession:
     9      description: A single session
    10      schema:
    11        $ref: '#/definitions/detailSessionEnvelope'
    12  
    13  definitions:
    14    listSessionsEnvelope:
    15      type: object
    16      required:
    17        - meta
    18        - data
    19      properties:
    20        meta:
    21          $ref: 'standard-responses.yml#/definitions/meta'
    22        data:
    23          $ref: '#/definitions/sessionList'
    24    detailSessionEnvelope:
    25      type: object
    26      required:
    27        - meta
    28        - data
    29      properties:
    30        meta:
    31          $ref: 'standard-responses.yml#/definitions/meta'
    32        data:
    33          $ref: '#/definitions/sessionDetail'
    34  
    35  
    36    sessionList:
    37      type: array
    38      items:
    39        $ref: '#/definitions/sessionDetail'
    40    sessionDetail:
    41      type: object
    42      allOf:
    43        - $ref: 'base-entity.yml#/definitions/baseEntity'
    44        - type: object
    45          required:
    46            - type
    47            - apiSessionId
    48            - apiSession
    49            - serviceId
    50            - service
    51            - token
    52            - edgeRouters
    53            - identityId
    54          properties:
    55            type:
    56              $ref: 'base-entity.yml#/definitions/dialBind'
    57            token:
    58              type: string
    59            apiSessionId:
    60              type: string
    61            apiSession:
    62              $ref: 'base-entity.yml#/definitions/entityRef'
    63            serviceId:
    64              type: string
    65            service:
    66              $ref: 'base-entity.yml#/definitions/entityRef'
    67            edgeRouters:
    68              type: array
    69              items:
    70                $ref: '#/definitions/sessionEdgeRouter'
    71            identityId:
    72              type: string
    73    sessionEdgeRouter:
    74      allOf:
    75        - $ref: "edge-routers.yml#/definitions/commonEdgeRouterProperties"
    76        - type: object
    77          required:
    78            - urls
    79          properties:
    80            # deprecated property, see supportedProtocols in commonEdgeRouterProperties
    81            urls:
    82              type: object
    83              additionalProperties:
    84                type: string