Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] SecuritySchemeHttp is missing scheme-parameter #7

Closed
Elewyth opened this issue Feb 18, 2021 · 3 comments
Closed

[Bug] SecuritySchemeHttp is missing scheme-parameter #7

Elewyth opened this issue Feb 18, 2021 · 3 comments

Comments

@Elewyth
Copy link

Elewyth commented Feb 18, 2021

When building a specification using SecuritySchemeHttp as SecuritySchemeType, I noticed that it is not possible to specify any additional parameters, as it is, for example, with SecuritySchemeApiKey. This leads to a spec being generated that fails the schema-validation of openapi3: https://swagger.io/specification/#security-requirement-object

The field "scheme" is required for type http. Additionally, it would be nice to specify the optional field "bearerFormat" when providing these parameters for http.

@maksbotan
Copy link
Collaborator

Hi! Thanks for checking out servant-openapi3 :)

The problem actually lies in the openapi3 package, and there's an open PR to fix that: biocad/openapi3#10

There are a couple of minor corrections to be made, after which I'll update the package.

@Elewyth
Copy link
Author

Elewyth commented Feb 18, 2021

Oh yeah, you are right, thanks for pointing me into the right direction! Glad this is already nearly fixed :).

@maksbotan
Copy link
Collaborator

This was fixed in biocad/openapi3#10 and is on Hackage as openapi3-3.0.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants