ErikWittern / openapi-snippet

Generates code snippets for given Swagger / Open API documents
MIT License
116 stars 67 forks source link

[OAS 3.0]Support for scheme for type http in Security #22

Closed lagonnebula closed 5 years ago

lagonnebula commented 5 years ago

In the components.securitySchemes in OAS3.0 there is a new key "scheme" that can be "bearer" or "basic" for example as described here : securitySchemeObject This new key isn't supported if you specify the auth with

security: 
    - securityName: []
component:
    securitySchemes:
        securityName:
            type: http
            scheme: bearer
lagonnebula commented 5 years ago

I tried to do as suggested on #20, but got the same error

lagonnebula commented 5 years ago

Oh crap didn't see you accepted my PR !