Security requirements must match a security definition

See original GitHub issue
Q A
Bug or feature request? Bug
Which Swagger/OpenAPI version? 3.0.0
Which Swagger-Editor version? Online version http://editor.swagger.io/
How did you install Swagger-Editor? Online version http://editor.swagger.io/
Which broswer & version? Google Chrome Version 63.0.3239.84 (Official Build) (64-bit)
Which operating system? Winodows 10 Home

Demonstration API definition

info:
  description: This is api specification for SurgLogs Resource server
  version: 1.0.3
  title: SurgLogs Api
servers:
  - url: 'http://devel.surglogs.mofa.sk/api/v5'
paths:
  /something:
    get:
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Success
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
externalDocs:
  description: Find out more about Swagger
  url: 'http://swagger.io'

Expected Behavior

No errors in swagger editor

Current Behavior

swagger editor shows error for provided api.

Semantic error at paths./something.get.security.0
Security requirements must match a security definition
Jump to line 12

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

14reactions
HristiyanZaharievcommented, Feb 27, 2018

Hello, I know this issue is closed but I still have the same problem in: http://editor.swagger.io/ . Date: 27.02.2018

2reactions
anh193commented, Apr 17, 2020

The problem still persists in Swagger 2.0 as now. I have the exact same API specs as OP’s. Could any one be of help?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use the "security" keyword a property name in a definition in ...
Show activity on this post. I have an object in my definitions section that needs to have a property named security, but when...
Read more >
Solved: Can securitySchemes be defined in a domain?
Security requirements must match a security definition. If I put the same security scheme definition into the API spec itself and modify the ......
Read more >
Defining Security - API Handyman
In this example we have defined three security definitions ( UserSecurity , AdminSecurity and MediaSecurity ), each of them is of basic type....
Read more >
You Call That A Security Requirement? - Medium
Proper Requirements Are The First Step To Verifiable Security ... lack any appropriate definition of their security requirements.
Read more >
what is the structure of a - security requirement? - DiVA Portal
Well-defined and unambiguous security requirements are essential for developing secure software ... However, sensitive information matches the definition of.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found