Skip to content

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sansyrox
Copy link
Member

@sansyrox sansyrox commented Nov 26, 2024

Description

This PR fixes openapi schema generation.

Summary

This PR does....

PR Checklist

Please ensure that:

  • The PR contains a descriptive title
  • The PR contains a descriptive summary of the changes
  • You build and test your changes before submitting a PR.
  • You have added relevant documentation
  • You have added relevant tests. We prefer integration tests wherever possible

Pre-Commit Instructions:

Copy link

vercel bot commented Nov 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
robyn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 11, 2025 10:37pm

@sansyrox sansyrox force-pushed the fix/openapi-schema-generation branch from 73448d7 to f413c8c Compare January 11, 2025 22:35
@@ -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:
Copy link

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)

Copy link

recurseml bot commented May 27, 2025

😱 Found 1 issue. Time to roll up your sleeves! 😱

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.

1 participant