Title: Move StrictHTTPServerOptions to strictnethttp package · Issue #2224 · oapi-codegen/oapi-codegen · GitHub
Open Graph Title: Move StrictHTTPServerOptions to strictnethttp package · Issue #2224 · oapi-codegen/oapi-codegen
X Title: Move StrictHTTPServerOptions to strictnethttp package · Issue #2224 · oapi-codegen/oapi-codegen
Description: The problem is that when splitting the generation of the spec (based on tags) across multiple configuration files and using the strict-server: true, it outputs type StrictHTTPServerOptions struct { RequestErrorHandlerFunc func(w http.Res...
Open Graph Description: The problem is that when splitting the generation of the spec (based on tags) across multiple configuration files and using the strict-server: true, it outputs type StrictHTTPServerOptions struct {...
X Description: The problem is that when splitting the generation of the spec (based on tags) across multiple configuration files and using the strict-server: true, it outputs type StrictHTTPServerOptions struct {...
Opengraph URL: https://github.com/oapi-codegen/oapi-codegen/issues/2224
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Move StrictHTTPServerOptions to strictnethttp package","articleBody":"The problem is that when splitting the generation of the spec (based on tags) across multiple configuration files and using the `strict-server: true`, it outputs \n```\ntype StrictHTTPServerOptions struct {\n\tRequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)\n\tResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)\n}\n```\n\nUnsure if there is a reason for this to be specified per generated server code, but if this was moved to strictnethttp package or something else, I would not have to implement the same piece of code multiple times.\n\n`StrictMiddlewareFunc` and `StrictHandlerFunc` do this hence the ask here.\n\n```\n\tedmStrict := edm.NewStrictHandlerWithOptions(s, strictMiddlewares, edm.StrictHTTPServerOptions{\n\t\tRequestErrorHandlerFunc: httpproblem.RequestErrorHandler(s.logger),\n\t\tResponseErrorHandlerFunc: httpproblem.ResponseErrorHandler(s.logger),\n\t})\n\ticStrict := ic.NewStrictHandlerWithOptions(s, strictMiddlewares, ic.StrictHTTPServerOptions{\n\t\tRequestErrorHandlerFunc: httpproblem.RequestErrorHandler(s.logger),\n\t\tResponseErrorHandlerFunc: httpproblem.ResponseErrorHandler(s.logger),\n\t})\n```\n\n","author":{"url":"https://github.com/jay-babu","@type":"Person","name":"jay-babu"},"datePublished":"2026-02-14T20:33:36Z","url":"https://github.com/oapi-codegen/oapi-codegen/issues/2224"}
| 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:edae2f7d-0d2b-390b-24a4-cd04bd39218a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 819C:33A683:2AAA170:37FA6C2:6AF9BAC3 |
| html-safe-nonce | d42d4a112a371df97978d5b0eb365806d9cb172c21bb1c9add2122b1c321427c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTlDOjMzQTY4MzoyQUFBMTcwOjM3RkE2QzI6NkFGOUJBQzMiLCJ2aXNpdG9yX2lkIjoiMjU1MTQwMzM0MjM0MDkzMDI0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9c925981f5d94b741deef69ab74a966a982ae7d38f6241ea4f9be4883d170881 |
| hovercard-subject-tag | issue:3942269795 |
| 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/2224/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9354eef2e5ce0f91d2577ada7fc0a813f783677b608ef786001037dcd634bec2/oapi-codegen/oapi-codegen/issues/2224 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9354eef2e5ce0f91d2577ada7fc0a813f783677b608ef786001037dcd634bec2/oapi-codegen/oapi-codegen/issues/2224 |
| og:image:alt | The problem is that when splitting the generation of the spec (based on tags) across multiple configuration files and using the strict-server: true, it outputs type StrictHTTPServerOptions struct {... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jay-babu |
| 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