-
-
Notifications
You must be signed in to change notification settings - Fork 291
fix: openapi schema generation for non container types #1054
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
e14f272
to
4505168
Compare
4505168
to
73448d7
Compare
07f28de
to
0b766c9
Compare
73448d7
to
f413c8c
Compare
for more information, see https://pre-commit.ci
@@ -607,6 +607,9 @@ def ALLOW_CORS(app: Robyn, origins: Union[List[str], str]): | |||
|
|||
@app.before_request() | |||
def cors_middleware(request): | |||
if request is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CORS middleware's handling of None request is incorrect. Middlewares in Robyn should either return the original request object to continue processing or a Response object to short-circuit. Returning None (from line 611) will likely cause undefined behavior or errors in the request processing pipeline. Instead, it should return an appropriate Response object with an error status code if the request is invalid.
React with 👍 to tell me that this comment was useful, or 👎 if not (and I'll stop posting more comments like this in the future)
😱 Found 1 issue. Time to roll up your sleeves! 😱 |
Description
This PR fixes openapi schema generation.
Summary
This PR does....
PR Checklist
Please ensure that:
Pre-Commit Instructions: