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

Implement code injection for OpenApi class #606

Open
3 tasks
rjambrecic opened this issue Nov 27, 2024 · 0 comments
Open
3 tasks

Implement code injection for OpenApi class #606

rjambrecic opened this issue Nov 27, 2024 · 0 comments
Assignees

Comments

@rjambrecic
Copy link
Collaborator

rjambrecic commented Nov 27, 2024

We use Pydantic models for function parameters.

To inject some field in the pydantic object we will need following:

  • Create new pydantic class which won't have the fields which need to be injected
  • inject_params wrapper needs to get dict of params which need to be injected e.g.
    {
    "Pet": {
    "id": 123
    }
    }
  • inject_params wrapper returns the function with new pydantic classes
@rjambrecic rjambrecic self-assigned this Nov 27, 2024
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

No branches or pull requests

1 participant