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

Omit empty security schemas from OpenAPI document. #93

Merged
merged 1 commit into from
Nov 17, 2021
Merged

Omit empty security schemas from OpenAPI document. #93

merged 1 commit into from
Nov 17, 2021

Conversation

dbanty
Copy link
Contributor

@dbanty dbanty commented Nov 16, 2021

This is mostly because my generator currently interprets the presence of security as a reason to require security (even if it's empty). Really I oughta fix my generator but it looked like security (on the path at least) was intended to be omitted due to this line, so I figured the change would be welcome.

By the way I very rarely touch macros so if there's a more clever way to do this let me know. Thanks!!

@sunli829 sunli829 merged commit e106324 into poem-web:master Nov 17, 2021
@sunli829
Copy link
Collaborator

Maybe the above changes look clearer, so I still merged them. 🙂

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

Successfully merging this pull request may close these issues.

2 participants