Title: Request and response structs getting redeclared in the Go code · Issue #1450 · oapi-codegen/oapi-codegen · GitHub
Open Graph Title: Request and response structs getting redeclared in the Go code · Issue #1450 · oapi-codegen/oapi-codegen
X Title: Request and response structs getting redeclared in the Go code · Issue #1450 · oapi-codegen/oapi-codegen
Description: When I generate this manifest all the request and response structs are getting declared twice for some reason. When I check the schema I only see them defined once. Here is an example: on line 1604 of the output, there is this struct: //...
Open Graph Description: When I generate this manifest all the request and response structs are getting declared twice for some reason. When I check the schema I only see them defined once. Here is an example: on line 1604...
X Description: When I generate this manifest all the request and response structs are getting declared twice for some reason. When I check the schema I only see them defined once. Here is an example: on line 1604...
Opengraph URL: https://github.com/oapi-codegen/oapi-codegen/issues/1450
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Request and response structs getting redeclared in the Go code","articleBody":"When I generate this manifest all the request and response structs are getting declared twice for some reason. When I check the schema I only see them defined once. \r\n\r\nHere is an example:\r\non line 1604 of the output, there is this struct:\r\n```golang\r\n// DeleteBusinessResponse defines model for DeleteBusinessResponse.\r\ntype DeleteBusinessResponse struct {\r\n\t// Success Success value\r\n\tSuccess bool `json:\"success\"`\r\n}\r\n```\r\nBut then it is re-declared on line 13872\r\n```golang\r\ntype DeleteBusinessResponse struct {\r\n\tBody []byte\r\n\tHTTPResponse *http.Response\r\n\tJSON200 *DeleteBusinessResponse\r\n\tJSON400 *BadRequestDto\r\n\tJSON401 *UnauthorizedDto\r\n\tJSON422 *UnprocessableEntityDto\r\n}\r\n```\r\n\r\nVersion: v1.16.2\r\nOpenAPI Spec: https://raw.githubusercontent.com/cbnsndwch/ghl-app-template/develop/docs/openapi/ghl-api-v2.merged.yml\r\nConfig Yaml:\r\n```yaml\r\npackage: highlevel\r\ngenerate:\r\n echo-server: false\r\n client: true\r\n models: true\r\n embedded-spec: false\r\noutput: client.go\r\noutput-options:\r\n skip-prune: false\r\n client-type-name: HLClient\r\n```\r\n\r\n","author":{"url":"https://github.com/clintberry","@type":"Person","name":"clintberry"},"datePublished":"2024-01-29T15:48:45Z","url":"https://github.com/oapi-codegen/oapi-codegen/issues/1450"}
| 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:39df901f-4473-1463-bb8e-c4eed3a4d9c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C91E:D9F59:2F78D0:41E8A0:6AF9CD15 |
| html-safe-nonce | 334511c49cfdd97d7df40e2ebeec07fbc7d5dbffbe304c78ae691fdda604e5c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTFFOkQ5RjU5OjJGNzhEMDo0MUU4QTA6NkFGOUNEMTUiLCJ2aXNpdG9yX2lkIjoiNzcwNjAxNDU5MTgxMjc1MDYxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0beca49f87e2e42b34f44b96ac47ec882b8ce27518d519c4b39d2d8c87fd4ebf |
| hovercard-subject-tag | issue:2105800302 |
| 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/1450/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cb164fa91f600925012f332e6efdf0cd820a48a6e2fd77091060b93f1750257c/oapi-codegen/oapi-codegen/issues/1450 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cb164fa91f600925012f332e6efdf0cd820a48a6e2fd77091060b93f1750257c/oapi-codegen/oapi-codegen/issues/1450 |
| og:image:alt | When I generate this manifest all the request and response structs are getting declared twice for some reason. When I check the schema I only see them defined once. Here is an example: on line 1604... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | clintberry |
| 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