René's URL Explorer Experiment


Title: Multiple json content types in a single requestBody or response lead to duplicate types and client interface functions · Issue #1127 · oapi-codegen/oapi-codegen · GitHub

Open Graph Title: Multiple json content types in a single requestBody or response lead to duplicate types and client interface functions · Issue #1127 · oapi-codegen/oapi-codegen

X Title: Multiple json content types in a single requestBody or response lead to duplicate types and client interface functions · Issue #1127 · oapi-codegen/oapi-codegen

Description: openapi: 3.0.1 info: title: api version: "0.1.0" paths: /whatever: post: operationId: CreateWhatever requestBody: content: application/json-patch+json: schema: $ref: "#/components/schemas/Whatever" application/json: schema: $ref: "#/comp...

Open Graph Description: openapi: 3.0.1 info: title: api version: "0.1.0" paths: /whatever: post: operationId: CreateWhatever requestBody: content: application/json-patch+json: schema: $ref: "#/components/schemas/Whatever"...

X Description: openapi: 3.0.1 info: title: api version: "0.1.0" paths: /whatever: post: operationId: CreateWhatever requestBody: content: application/json-patch+json: schema: $ref: "#/components/sc...

Opengraph URL: https://github.com/oapi-codegen/oapi-codegen/issues/1127

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Multiple json content types in a single requestBody or response lead to duplicate types and client interface functions","articleBody":"```yaml\r\nopenapi: 3.0.1\r\ninfo:\r\n  title: api\r\n  version: \"0.1.0\"\r\npaths:\r\n  /whatever:\r\n    post:\r\n      operationId: CreateWhatever\r\n      requestBody:\r\n        content:\r\n          application/json-patch+json:\r\n            schema:\r\n              $ref: \"#/components/schemas/Whatever\"\r\n          application/json:\r\n            schema:\r\n              $ref: \"#/components/schemas/Whatever\"\r\n          text/json:\r\n            schema:\r\n              $ref: \"#/components/schemas/Whatever\"\r\n          application/*+json:\r\n            schema:\r\n              $ref: \"#/components/schemas/Whatever\"\r\n      responses:\r\n        201:\r\n          description: Whatever created\r\n          content:\r\n            text/plain:\r\n              schema:\r\n                $ref: \"#/components/schemas/Whatever\"\r\n            application/json:\r\n              schema:\r\n                $ref: \"#/components/schemas/Whatever\"\r\n            text/json:\r\n              schema:\r\n                $ref: \"#/components/schemas/Whatever\"\r\ncomponents:\r\n  schemas:\r\n    Whatever:\r\n      type: object\r\n      properties:\r\n        someProperty:\r\n          type: string\r\n```\r\n\r\nGenerated Client Boilerplate:\r\n```go\r\n// CreateWhateverJSONRequestBody defines body for CreateWhatever for application/*+json ContentType.\r\ntype CreateWhateverJSONRequestBody = Whatever\r\n\r\n// CreateWhateverJSONRequestBody defines body for CreateWhatever for application/json ContentType.\r\ntype CreateWhateverJSONRequestBody = Whatever\r\n\r\n// CreateWhateverJSONRequestBody defines body for CreateWhatever for application/json-patch+json ContentType.\r\ntype CreateWhateverJSONRequestBody = Whatever\r\n\r\n...\r\n\r\n// The interface specification for the client above.\r\ntype ClientInterface interface {\r\n\t// CreateWhatever request with any body\r\n\tCreateWhateverWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)\r\n\r\n\tCreateWhatever(ctx context.Context, body CreateWhateverJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)\r\n\r\n\tCreateWhatever(ctx context.Context, body CreateWhateverJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)\r\n\r\n\tCreateWhatever(ctx context.Context, body CreateWhateverJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)\r\n\r\n...\r\n\r\n// ClientWithResponsesInterface is the interface specification for the client with responses above.\r\ntype ClientWithResponsesInterface interface {\r\n\t// CreateWhatever request with any body\r\n\tCreateWhateverWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWhateverResponse, error)\r\n\r\n\tCreateWhateverWithResponse(ctx context.Context, body CreateWhateverJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWhateverResponse, error)\r\n\r\n\tCreateWhateverWithResponse(ctx context.Context, body CreateWhateverJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWhateverResponse, error)\r\n\r\n\tCreateWhateverWithResponse(ctx context.Context, body CreateWhateverJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWhateverResponse, error)\r\n}\r\n}\r\n```","author":{"url":"https://github.com/jlengelsen","@type":"Person","name":"jlengelsen"},"datePublished":"2023-06-28T11:59:48Z","url":"https://github.com/oapi-codegen/oapi-codegen/issues/1127"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bef1c80e-33b1-b6ff-d312-df3152e14b4c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD996:42EA3:FC0205:1606D3D:6AFA09CB
html-safe-nonce70c21717b335ed5d4e45cf980bbf1d69ac36ea4499c8b45631701be6776eaefd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTk2OjQyRUEzOkZDMDIwNToxNjA2RDNEOjZBRkEwOUNCIiwidmlzaXRvcl9pZCI6Ijc2NzY4MjM0MzU4NTczNTE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1bc01d152e1d90297a68ad92ec9827a476cc1f0b9cff929b7cb2d27bb610a499
hovercard-subject-tagissue:1778794653
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/oapi-codegen/oapi-codegen/1127/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7c9ccc1d995c3fddd4c46c895faa807725317c0749ce6718a169e60a89e7202c/oapi-codegen/oapi-codegen/issues/1127
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7c9ccc1d995c3fddd4c46c895faa807725317c0749ce6718a169e60a89e7202c/oapi-codegen/oapi-codegen/issues/1127
og:image:altopenapi: 3.0.1 info: title: api version: "0.1.0" paths: /whatever: post: operationId: CreateWhatever requestBody: content: application/json-patch+json: schema: $ref: "#/components/schemas/Whatever"...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejlengelsen
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-preview
go-importgithub.com/oapi-codegen/oapi-codegen git https://github.com/oapi-codegen/oapi-codegen.git
octolytics-dimension-user_id142752710
octolytics-dimension-user_loginoapi-codegen
octolytics-dimension-repository_id173009358
octolytics-dimension-repository_nwooapi-codegen/oapi-codegen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id173009358
octolytics-dimension-repository_network_root_nwooapi-codegen/oapi-codegen
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/oapi-codegen/oapi-codegen/issues/1127#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foapi-codegen%2Foapi-codegen%2Fissues%2F1127
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foapi-codegen%2Foapi-codegen%2Fissues%2F1127
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=oapi-codegen%2Foapi-codegen
Reloadhttps://github.com/oapi-codegen/oapi-codegen/issues/1127
Reloadhttps://github.com/oapi-codegen/oapi-codegen/issues/1127
Reloadhttps://github.com/oapi-codegen/oapi-codegen/issues/1127
oapi-codegenhttps://github.com/oapi-codegen
oapi-codegenhttps://github.com/oapi-codegen/oapi-codegen
Codehttps://github.com/oapi-codegen/oapi-codegen
Issues226 (226)https://github.com/oapi-codegen/oapi-codegen/issues
Pull requests67 (67)https://github.com/oapi-codegen/oapi-codegen/pulls
Discussionshttps://github.com/oapi-codegen/oapi-codegen/discussions
Actionshttps://github.com/oapi-codegen/oapi-codegen/actions
Projectshttps://github.com/oapi-codegen/oapi-codegen/projects
Security and quality11 (11)https://github.com/oapi-codegen/oapi-codegen/security
Insightshttps://github.com/oapi-codegen/oapi-codegen/pulse
https://github.com/oapi-codegen/oapi-codegen
New issuehttps://github.com/login?return_to=https://github.com/oapi-codegen/oapi-codegen/issues/1127
New issuehttps://github.com/login?return_to=https://github.com/oapi-codegen/oapi-codegen/issues/1127
#1159https://github.com/oapi-codegen/oapi-codegen/pull/1159
Multiple json content types in a single requestBody or response lead to duplicate types and client interface functionshttps://github.com/oapi-codegen/oapi-codegen/issues/1127#top
#1159https://github.com/oapi-codegen/oapi-codegen/pull/1159
awaiting replyhttps://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3A%22awaiting%20reply%22
https://github.com/jlengelsen
jlengelsenhttps://github.com/jlengelsen
on Jun 28, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#issue-1778794653
https://github.com/gimpf
gimpfhttps://github.com/gimpf
on Jun 29, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#issuecomment-1613215085
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
on Jun 29, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#issuecomment-1613274629
jamietannahttps://github.com/jamietanna
awaiting replyhttps://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3A%22awaiting%20reply%22
on Jun 29, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#event-9677668751
https://github.com/fikin
fikinhttps://github.com/fikin
on Jul 4, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#issuecomment-1620078085
https://github.com/jlengelsen
jlengelsenhttps://github.com/jlengelsen
on Jul 8, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#issuecomment-1627094888
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
on Jul 11, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#issuecomment-1631475232
https://github.com/sagikazarmark
sagikazarmarkhttps://github.com/sagikazarmark
on Jul 29, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#issuecomment-1656516460
@jamietannahttps://github.com/jamietanna
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
on Jul 31, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#issuecomment-1658155940
jamietannahttps://github.com/jamietanna
on Jul 31, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#event-9962899863
Add `/` to word separators for `ToCamelCase`https://github.com/oapi-codegen/oapi-codegen/commit/7d4c623ae1b865216263792fcea809865cac47bb
7d4c623https://github.com/oapi-codegen/oapi-codegen/commit/7d4c623ae1b865216263792fcea809865cac47bb
Fix: Allow multiple JSON types to be generatedhttps://github.com/oapi-codegen/oapi-codegen/commit/1d8a51b28730f4cee22c6f9fcd5d543fda4d4bba
1d8a51bhttps://github.com/oapi-codegen/oapi-codegen/commit/1d8a51b28730f4cee22c6f9fcd5d543fda4d4bba
Add `/` to word separators for `ToCamelCase`https://github.com/oapi-codegen/oapi-codegen/commit/3fe0bc0db46d7af4ead42727119997c2133870bc
3fe0bc0https://github.com/oapi-codegen/oapi-codegen/commit/3fe0bc0db46d7af4ead42727119997c2133870bc
Fix: Allow multiple JSON types to be generatedhttps://github.com/oapi-codegen/oapi-codegen/commit/5dbff794dbfdcc33988babe2ac5a7f99fb95b94d
5dbff79https://github.com/oapi-codegen/oapi-codegen/commit/5dbff794dbfdcc33988babe2ac5a7f99fb95b94d
Add `/` to word separators for `ToCamelCase`https://github.com/oapi-codegen/oapi-codegen/commit/eaf357ff7eabe2dff823bd16efe185d6bca12076
eaf357fhttps://github.com/oapi-codegen/oapi-codegen/commit/eaf357ff7eabe2dff823bd16efe185d6bca12076
Fix: Allow multiple JSON types to be generatedhttps://github.com/oapi-codegen/oapi-codegen/commit/c068a558741f6eef2dfdde8f2baf98c49fdeec0c
c068a55https://github.com/oapi-codegen/oapi-codegen/commit/c068a558741f6eef2dfdde8f2baf98c49fdeec0c
Fix: Allow multiple JSON types to be generatedhttps://github.com/oapi-codegen/oapi-codegen/commit/911d90a79aec753311e2c101dda3c6570c7bfefb
911d90ahttps://github.com/oapi-codegen/oapi-codegen/commit/911d90a79aec753311e2c101dda3c6570c7bfefb
Fix: Allow multiple JSON types to be generatedhttps://github.com/oapi-codegen/oapi-codegen/commit/90577f23912ceb60c4f735797b49ee37e3f56a09
90577f2https://github.com/oapi-codegen/oapi-codegen/commit/90577f23912ceb60c4f735797b49ee37e3f56a09
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
on Jul 31, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#issuecomment-1658430309
#1159https://github.com/oapi-codegen/oapi-codegen/pull/1159
https://github.com/sagikazarmark
sagikazarmarkhttps://github.com/sagikazarmark
on Jul 31, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#issuecomment-1658809233
@jamietannahttps://github.com/jamietanna
completedhttps://github.com/oapi-codegen/oapi-codegen/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1159https://github.com/oapi-codegen/oapi-codegen/pull/1159
on Jul 31, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#event-9968475773
on Jul 31, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#event-9968476118
Fix: Allow multiple JSON types to be generated (#1159)https://github.com/oapi-codegen/oapi-codegen/commit/b248b1d6d4de870ec55e74b12afb9a889e97f9c9
#1159https://github.com/oapi-codegen/oapi-codegen/pull/1159
b248b1dhttps://github.com/oapi-codegen/oapi-codegen/commit/b248b1d6d4de870ec55e74b12afb9a889e97f9c9
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
on Jul 31, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#issuecomment-1659069003
@sagikazarmarkhttps://github.com/sagikazarmark
https://github.com/jamietanna
jamietannahttps://github.com/jamietanna
on Jul 31, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#issuecomment-1659070205
https://github.com/deepmap/oapi-codegen/releases/tag/v1.13.2https://github.com/deepmap/oapi-codegen/releases/tag/v1.13.2
debuggerpkhttps://github.com/debuggerpk
on Sep 18, 2023https://github.com/oapi-codegen/oapi-codegen/issues/1127#event-10392480072
Fix: Allow multiple JSON types to be generated (oapi-codegen#1159)https://github.com/breuHQ/oapi-codegen/commit/461d9bf7e61b5b877a90a1f9fa963c94a9d8b5cb
oapi-codegen#1159https://github.com/oapi-codegen/oapi-codegen/pull/1159
461d9bfhttps://github.com/breuHQ/oapi-codegen/commit/461d9bf7e61b5b877a90a1f9fa963c94a9d8b5cb
danicc097https://github.com/danicc097
on Aug 31, 2024https://github.com/oapi-codegen/oapi-codegen/issues/1127#event-14091842944
Fix: Allow multiple JSON types to be generated (oapi-codegen#1159)https://github.com/danicc097/oapi-codegen/commit/2800a935f1dbcf2ac9cfc0f77303e3dd260db305
oapi-codegen#1159https://github.com/oapi-codegen/oapi-codegen/pull/1159
2800a93https://github.com/danicc097/oapi-codegen/commit/2800a935f1dbcf2ac9cfc0f77303e3dd260db305
Sign up for freehttps://github.com/signup?return_to=https://github.com/oapi-codegen/oapi-codegen/issues/1127
Sign in to commenthttps://github.com/login?return_to=https://github.com/oapi-codegen/oapi-codegen/issues/1127
awaiting replyhttps://github.com/oapi-codegen/oapi-codegen/issues?q=state%3Aopen%20label%3A%22awaiting%20reply%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.