Title: Allow resetting globalState.options · Issue #1805 · oapi-codegen/oapi-codegen · GitHub
Open Graph Title: Allow resetting globalState.options · Issue #1805 · oapi-codegen/oapi-codegen
X Title: Allow resetting globalState.options · Issue #1805 · oapi-codegen/oapi-codegen
Description: 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 Generate operat...
Open Graph Description: 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 ...
X Description: 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 ...
Opengraph URL: https://github.com/oapi-codegen/oapi-codegen/issues/1805
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow resetting globalState.options","articleBody":"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 `Generate` operation. When I try to generate separate files by calling `Generate` multiple times, only the first set of operations are included, and the rest do not have any operations.\r\n\r\nI wonder if being able to reset the global state options as needed would be helpful here to support more deterministic behavior.","author":{"url":"https://github.com/bcm820","@type":"Person","name":"bcm820"},"datePublished":"2024-10-16T13:49:47Z","url":"https://github.com/oapi-codegen/oapi-codegen/issues/1805"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:55582afc-2995-9fbc-1cba-a76725c60126 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9DC:31C6F7:83E3E:B69D4:6AF9BE6F |
| html-safe-nonce | afeec7801c2b2491e28223e59e45f19a40102e90aa7444a0fcfe701091627fb0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOURDOjMxQzZGNzo4M0UzRTpCNjlENDo2QUY5QkU2RiIsInZpc2l0b3JfaWQiOiIzOTk0ODk1MzA1OTY1OTQ0NDMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ab4359be3b5d0c90d7b21a569e7ed863638da937e3e98ee9c601b79b4c6fbd89 |
| hovercard-subject-tag | issue:2591963035 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/oapi-codegen/oapi-codegen/1805/issue_layout |
| twitter:image | https://opengraph.githubassets.com/36cb2564e4224985d65bc375d1f25dea0a9f6bfab044c96dbdd4294e9902bc59/oapi-codegen/oapi-codegen/issues/1805 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/36cb2564e4224985d65bc375d1f25dea0a9f6bfab044c96dbdd4294e9902bc59/oapi-codegen/oapi-codegen/issues/1805 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bcm820 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/oapi-codegen/oapi-codegen git https://github.com/oapi-codegen/oapi-codegen.git |
| octolytics-dimension-user_id | 142752710 |
| octolytics-dimension-user_login | oapi-codegen |
| octolytics-dimension-repository_id | 173009358 |
| octolytics-dimension-repository_nwo | oapi-codegen/oapi-codegen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 173009358 |
| octolytics-dimension-repository_network_root_nwo | oapi-codegen/oapi-codegen |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width