Title: Some examples are using invalid OpenAPI 3.0.x · Issue #1976 · oapi-codegen/oapi-codegen · GitHub
Open Graph Title: Some examples are using invalid OpenAPI 3.0.x · Issue #1976 · oapi-codegen/oapi-codegen
X Title: Some examples are using invalid OpenAPI 3.0.x · Issue #1976 · oapi-codegen/oapi-codegen
Description: I.e. if trying to generate all types for https://github.com/oapi-codegen/oapi-codegen/tree/main/examples/client this fails with: error generating code: error generating type definitions: error generating Go types for component schemas: e...
Open Graph Description: I.e. if trying to generate all types for https://github.com/oapi-codegen/oapi-codegen/tree/main/examples/client this fails with: error generating code: error generating type definitions: error gene...
X Description: I.e. if trying to generate all types for https://github.com/oapi-codegen/oapi-codegen/tree/main/examples/client this fails with: error generating code: error generating type definitions: error gene...
Opengraph URL: https://github.com/oapi-codegen/oapi-codegen/issues/1976
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Some examples are using invalid OpenAPI 3.0.x","articleBody":"I.e. if trying to generate all types for https://github.com/oapi-codegen/oapi-codegen/tree/main/examples/client this fails with:\n\n```\nerror generating code: error generating type definitions: error generating Go types for component schemas: error converting Schema Unreferenced to Go type: error generating Go schema for property 'id': error resolving primitive type: unhandled Schema type: &[int]\n```\n\nThis is because we've got an invalid schema type. Via `vacuum`:\n\n```\napi.yaml:47:11 | error | unknown schema type: `int` | oas-schema-check | Schemas | $.components.schemas['Unreferenced'].properties['id'].type\n```","author":{"url":"https://github.com/jamietanna","@type":"Person","name":"jamietanna"},"datePublished":"2025-05-10T16:42:29Z","url":"https://github.com/oapi-codegen/oapi-codegen/issues/1976"}
| 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:74a1ea81-7f32-cdb5-b57b-16043aade225 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCBA:3D6C24:55F8F0:77CE3C:6AF9BDBD |
| html-safe-nonce | 7e83f6e0b5f02f1a6b13a07946fbdc43c9163d4f7d35b83a9cd8b8a6acddf18e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0JBOjNENkMyNDo1NUY4RjA6NzdDRTNDOjZBRjlCREJEIiwidmlzaXRvcl9pZCI6IjIxMjA4MTQzODk2NzI2NTYzMTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c35f3c9015725ee31489c6cf8548ca9d4956a3cbaa01ca3c8a71a1ebfef89935 |
| hovercard-subject-tag | issue:3054355381 |
| 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/1976/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cfe3998b85880f126d392e5182e5ea3728ee573ee925d56affd3b8402d3be918/oapi-codegen/oapi-codegen/issues/1976 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cfe3998b85880f126d392e5182e5ea3728ee573ee925d56affd3b8402d3be918/oapi-codegen/oapi-codegen/issues/1976 |
| og:image:alt | I.e. if trying to generate all types for https://github.com/oapi-codegen/oapi-codegen/tree/main/examples/client this fails with: error generating code: error generating type definitions: error gene... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jamietanna |
| 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