Skip to content

Conversation

@jesusgpo
Copy link

Description

This pull request improves the handling of parameter references in the extract_args method within openapi_codegen.py. The main enhancement is the ability to resolve and extract arguments from direct parameter references in OpenAPI specifications, making the code generator more robust and accurate.

Improvements to OpenAPI parameter reference handling:

  • Added logic to resolve direct parameter references (e.g., #/components/parameters/paramName and #/definitions/defName) by looking up and initializing the referenced parameter or definition.
  • Updated the fallback logic to ensure arguments with $ref are not redundantly processed if already handled, preventing duplicate extraction.

@CLAassistant
Copy link

CLAassistant commented Sep 15, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the Contribution Thank you! Contributions are always welcome! label Sep 15, 2025
@github-actions
Copy link

Thank you for your contribution. Your willingness to improve our product and contribute to our community is highly appreciated. For your convenience, here is a link to the contributions SLAs document.

@jesusgpo
Copy link
Author

Hello? Earth to @JasBeilin, are you still with us?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Contribution Thank you! Contributions are always welcome!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants