mattpolzin / OpenAPIKit

Codable Swift OpenAPI implementation.
MIT License
280 stars 35 forks source link

A Sample Implementation of an Authentication #266

Closed jcbriones closed 1 year ago

jcbriones commented 1 year ago

Was trying to figure out how does the security in OpenAPI.Document.init works. I was able to create the type of OpenAPI.SecurityScheme but I don't know how to add it in the security portion of the init. Can't figure out the correct type to use to initialize it correctly. It would be nice if there is such a documentation in the README.

jcbriones commented 1 year ago

Actually was able to figure it out now. But I think it would still be beneficial to add it in readme. I might probably doing it wrong still. Thank you

mattpolzin commented 1 year ago

Thanks for suggesting better documentation around this!

I've created a PR that I hope adds some clarity that would have been helpful to you if it had been there all along.

If you get the chance, please do let me know if the PR I've opened addresses this issue well enough or not!

https://github.com/mattpolzin/OpenAPIKit/pull/267