Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Allow manual changes to generated stub files #308

Open
lars-reimann opened this issue Nov 24, 2021 · 0 comments
Open

Allow manual changes to generated stub files #308

lars-reimann opened this issue Nov 24, 2021 · 0 comments
Labels
enhancement 💡 New feature or request

Comments

@lars-reimann
Copy link
Member

lars-reimann commented Nov 24, 2021

Is your feature request related to a problem? Please describe

Some modifications to stub files should be allowed, such as adding more constraints, tighter datatypes, or schema effects (basically everything that does not affect the Python code). Piping these through the API editor does not make much sense since the user would need to write DSL code in there to get the same generality but we cannot offer ideal tool support.

Desired solution

Take existing stub files as input when creating the new stubs (if available) and try to merge the generated stubs with them. Report any conflicts and let the user resolve them.

Additional context (optional)

Changes to Python code could also be allowed, however, currently only interface changes are supported instead of implementation changes, which heavily limits usefulness.

Prerequisite: #327 (to parse the existing stubs)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement 💡 New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant