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

Alternative for openapi-core #15

Open
kigawas opened this issue Nov 6, 2020 · 2 comments
Open

Alternative for openapi-core #15

kigawas opened this issue Nov 6, 2020 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@kigawas
Copy link

kigawas commented Nov 6, 2020

Just spent some time playing with pyotr, I found that its dependency openapi-core is rather primitive and it lacks lots of features.

It has too many restrictions on security scheme:

  1. you can only define API_KEY and HTTP provider
  2. if you define more than one schemes like below, you can only use the first one (probably a bug in RequestValidator._get_security, it alway returns the first scheme)
      security:
        - petstore_auth:
            - 'write:pets'
            - 'read:pets'
        - api_key: []
@berislavlopac berislavlopac added enhancement New feature or request help wanted Extra attention is needed labels Dec 9, 2020
@berislavlopac
Copy link
Owner

I'm definitely open to improvements in this area, but I am not aware of a better alternative to openapi-core. Suggestions welcome!

@kigawas
Copy link
Author

kigawas commented Dec 10, 2020

In effect I found this connexion's sanic PR pretty useful, though connexion is not actively maintained 😄

spec-first/connexion#1250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants