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

     1  swagger: '2.0'
     2  
     3  info:
     4    version: "1.0.0"
     5    title: ordering security requirements
     6    description: verify that generated code keeps a stable order of security requirements
     7  produces:
     8    - application/json
     9  consumes:
    10    - application/json
    11  securityDefinitions:
    12    A:
    13      type: basic
    14    B:
    15      type: apiKey
    16      name: K1
    17      in: header
    18    C:
    19      type: apiKey
    20      name: K2
    21      in: query
    22    D: 
    23      type: apiKey
    24      name: K3
    25      in: query
    26    E:
    27      type: oauth2
    28      authorizationUrl: https://fake.example.com/authorize
    29      tokenUrl: https://fake.example.com/token
    30      flow: accessCode
    31      scopes: 
    32        s0: ''
    33        s1: '' 
    34        s2: ''   
    35        s3: '' 
    36        s4: '' 
    37        s5: '' 
    38        s6: '' 
    39        s7: '' 
    40        s8: '' 
    41        s9: '' 
    42  security:
    43    - A: []
    44      B: []
    45      E: [s0, s1,s2,s3,s4]
    46    - C: []
    47      D: []
    48      E: [s5, s6,s7,s8,s9]
    49  paths:
    50    /asec:
    51      get:
    52        operationId: asecOp
    53        description: no description
    54        responses:
    55          default:
    56            description: Generic Out
    57    /bsec:
    58      get:
    59        security:
    60          - A: []
    61            E: [s0, s1,s2,s3,s4]
    62          - D: []
    63            E: [s5, s6,s7,s8,s9]
    64        operationId: bsecOp
    65        description: no description
    66        responses:
    67          default:
    68            description: Generic Out
    69    /csec:
    70      get:
    71        security: []
    72        operationId: csecOp
    73        description: no description
    74        responses:
    75          default:
    76            description: Generic Out