Skip to content

Conversation

@moutonjeremy
Copy link
Member

Exclude path and query parameters from schema generation to streamline the process and avoid redundancy.

Copilot AI review requested due to automatic review settings January 6, 2026 13:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the OpenAPI schema generation by preventing path and query parameters from being included in request body schemas. These parameters are already properly handled through a separate code path that generates OpenAPI parameter definitions.

Key Changes

  • Added early exit in generateSchema to skip fields tagged with path or query parameters
  • Removed redundant description generation code that was adding parameter descriptions to field schemas
  • Streamlined schema generation to focus only on request/response body properties

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@moutonjeremy moutonjeremy merged commit defac54 into main Jan 6, 2026
10 checks passed
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