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

[python-fastapi] Added a base class for the actual implementation #14470

Merged
merged 1 commit into from
May 26, 2023

Commits on Jan 16, 2023

  1. [python-fastapi] Added a base class for the actual implementation

    It is very difficult to "merge" the changes, made by code generation,
    and the changes, made by developers. It would be very useful to
    separate the generated code and the code written by developers. In
    addition this would remove the necessity to track the generated code.
    Pyhton (since 3.6) has a hook, __init_subclasses__, that could be used
    to solve exactly this problem.
    The classes from *_base.py should be implemented in an ns package that is specified
    by the additional parameter ("-p fastapiImplementationPackage=example_name").
    
    Signed-off-by: Nikita Vakula <[email protected]>
    krjakbrjak committed Jan 16, 2023
    Configuration menu
    Copy the full SHA
    edbe80f View commit details
    Browse the repository at this point in the history