-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow resetting globalState.options #1805
Copy link
Copy link
Open
Labels
codegen-as-libraryenhancementNew feature or requestNew feature or requesthelp wantedExternal contributions would be very much appreciated!External contributions would be very much appreciated!
Description
Activity
Metadata
Metadata
Assignees
Labels
codegen-as-libraryenhancementNew feature or requestNew feature or requesthelp wantedExternal contributions would be very much appreciated!External contributions would be very much appreciated!
We are using oapi-codegen as a library to split out client operation code by tags into separate files. However, it is currently impossible to do this in a single running process due to globalState being shared across each
Generateoperation. When I try to generate separate files by callingGeneratemultiple times, only the first set of operations are included, and the rest do not have any operations.I wonder if being able to reset the global state options as needed would be helpful here to support more deterministic behavior.