-
Notifications
You must be signed in to change notification settings - Fork 50
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
What's the point of SecurityDefinitions
?
#30
Comments
So I tried putting something into
I didn't read OpenAPI specification carefully, but it looks like I must provide security definitions in order to specify security requirements, but apparently I can't do that in |
Update after reading OAS: apparently I should use |
Hi!
Yes. See an example here: https://github.com/biocad/web-template/blob/master/src/Web/Template/Servant/Auth.hs#L295
Looks like so. However, there is one difference, namely in openapi3/src/Data/OpenApi/Internal.hs Lines 1100 to 1102 in ea20d09
It would only matter for openapi3/src/Data/OpenApi/Internal.hs Lines 1094 to 1097 in ea20d09
Would you make a PR to fix this? BTW, the newtype is still used in tests. |
Oh, I see, thanks.
Yep, everything is clear now, so I'll probably do it, hopefully within a couple of weeks. |
Thanks! |
This type is defined in
Data.OpenApi.Internal
and is not part of any other types. There are some instance defined for it and it's re-exported fromData.OpenApi
. Also it's used in tests.Is this type useful on its own (since it's not part of any other type)? How is it supposed to be used?
I see that in
swagger2
there isSwagger
data type with_swaggerSecurityDefinitions :: SecurityDefinitions
, but apparently it was thrown away inopenapi3
. Is it intentional (maybe there actually was a change in the specification, i. e. maybe that's the difference between version 2 and version 3)?The text was updated successfully, but these errors were encountered: