Title: code generated for endpoint is invalid when endpoint path and response type have same prefix · Issue #255 · oapi-codegen/oapi-codegen · GitHub
Open Graph Title: code generated for endpoint is invalid when endpoint path and response type have same prefix · Issue #255 · oapi-codegen/oapi-codegen
X Title: code generated for endpoint is invalid when endpoint path and response type have same prefix · Issue #255 · oapi-codegen/oapi-codegen
Description: As shown in the following sample, with endpoint "query" returning "QueryResponse" type conflicts with the generated code for ClientWithResponsesInterface which also produce "QueryResponse" type to wrap the HTTP responses. paths: /query: ...
Open Graph Description: As shown in the following sample, with endpoint "query" returning "QueryResponse" type conflicts with the generated code for ClientWithResponsesInterface which also produce "QueryResponse" type to ...
X Description: As shown in the following sample, with endpoint "query" returning "QueryResponse" type conflicts with the generated code for ClientWithResponsesInterface which also produce &quo...
Opengraph URL: https://github.com/oapi-codegen/oapi-codegen/issues/255
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"code generated for endpoint is invalid when endpoint path and response type have same prefix","articleBody":"As shown in the following sample, with endpoint \"query\" returning \"QueryResponse\" type conflicts with the generated code for ClientWithResponsesInterface which also produce \"QueryResponse\" type to wrap the HTTP responses.\r\n\r\npaths:\r\n /**query**:\r\n post:\r\n tags:\r\n - Search\r\n summary: Queries using the input request criteria.\r\n description: \"The API supports full-text search\"\r\n operationId: Query\r\n parameters:\r\n - $ref: \"#/components/parameters/data-id\"\r\n requestBody:\r\n content:\r\n application/json:\r\n schema:\r\n $ref: \"#/components/schemas/QueryRequest\"\r\n responses:\r\n \"200\":\r\n description: Success\r\n content:\r\n application/json:\r\n schema:\r\n $ref: \"#/components/schemas/**QueryResponse**\"\r\n ","author":{"url":"https://github.com/mahbh2001","@type":"Person","name":"mahbh2001"},"datePublished":"2020-11-20T15:11:01Z","url":"https://github.com/oapi-codegen/oapi-codegen/issues/255"}
| 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:9344cc88-0c45-e090-435f-ae37dc5eb374 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C914:213A1D:11480E:17F28B:6AF9C20A |
| html-safe-nonce | 07620937c2d927fac3e90d05385f859ba72e52727215ce6476038b8b1a5c06cb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTE0OjIxM0ExRDoxMTQ4MEU6MTdGMjhCOjZBRjlDMjBBIiwidmlzaXRvcl9pZCI6IjI4NDMwNTU1NjYxODIwMDczMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aeafeaf16e4c65503276825ed3daf21568d4e1f05f2c6768b2a5f31df2f31f67 |
| hovercard-subject-tag | issue:747565929 |
| 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/255/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d92e573eb6e14dcbc974191bf2ff0445ff0166d12341b944d982f9ba59e223c8/oapi-codegen/oapi-codegen/issues/255 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d92e573eb6e14dcbc974191bf2ff0445ff0166d12341b944d982f9ba59e223c8/oapi-codegen/oapi-codegen/issues/255 |
| og:image:alt | As shown in the following sample, with endpoint "query" returning "QueryResponse" type conflicts with the generated code for ClientWithResponsesInterface which also produce "QueryResponse" type to ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mahbh2001 |
| 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