fix(ux): ensure that optional security schema is rendered without padlock. (#6839)
This commit is contained in:
35
test/e2e-cypress/static/documents/security/anonymous.yaml
Normal file
35
test/e2e-cypress/static/documents/security/anonymous.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
openapi: 3.0.0
|
||||
info:
|
||||
title: Test anonymous operations
|
||||
version: 1.0.0
|
||||
paths:
|
||||
/withBoth:
|
||||
get:
|
||||
security: [{}, {"apikeyScheme": []}, {"apikeyScheme2": []}]
|
||||
responses:
|
||||
200:
|
||||
description: asdadasd
|
||||
/onlyEmpty:
|
||||
get:
|
||||
security: [{}]
|
||||
responses:
|
||||
200:
|
||||
description: asdadasd
|
||||
/required:
|
||||
get:
|
||||
security: [{"apikeyScheme": []}]
|
||||
responses:
|
||||
200:
|
||||
description: asdadasd
|
||||
security:
|
||||
- apikeyScheme: []
|
||||
components:
|
||||
securitySchemes:
|
||||
apikeyScheme:
|
||||
name: test
|
||||
type: apiKey
|
||||
in: header
|
||||
apikeyScheme2:
|
||||
name: test2
|
||||
type: apiKey
|
||||
in: header
|
||||
Reference in New Issue
Block a user