Title: The request body in specification with `application/vnd.api+json` don't generate json option for request · Issue #592 · openapi-generators/openapi-python-client · GitHub
Open Graph Title: The request body in specification with `application/vnd.api+json` don't generate json option for request · Issue #592 · openapi-generators/openapi-python-client
X Title: The request body in specification with `application/vnd.api+json` don't generate json option for request · Issue #592 · openapi-generators/openapi-python-client
Description: Describe the bug The request body in specification with application/vnd.api+json don't generate json request paramers To Reproduce Steps to reproduce the behavior: Example request body requestBody: content: application/vnd.api+json: sche...
Open Graph Description: Describe the bug The request body in specification with application/vnd.api+json don't generate json request paramers To Reproduce Steps to reproduce the behavior: Example request body requestBody:...
X Description: Describe the bug The request body in specification with application/vnd.api+json don't generate json request paramers To Reproduce Steps to reproduce the behavior: Example request body requestB...
Opengraph URL: https://github.com/openapi-generators/openapi-python-client/issues/592
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The request body in specification with `application/vnd.api+json` don't generate json option for request","articleBody":"**Describe the bug**\r\nThe request body in specification with `application/vnd.api+json` don't generate json request paramers\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Example request body \r\n```\r\nrequestBody:\r\n content:\r\n application/vnd.api+json:\r\n schema:\r\n $ref: '#/components/schemas/WorkspaceDocument'\r\n```\r\n2. generate specification\r\n3. see in models \r\n```\r\ndef sync_detailed(\r\n workspace: str,\r\n *,\r\n client: Client,\r\n) -\u003e Response[Union[Any, WorkspaceDocument]]:\r\n \"\"\"Update a Workspace\r\n\r\n Args:\r\n workspace (str):\r\n\r\n Returns:\r\n Response[Union[Any, WorkspaceDocument]]\r\n \"\"\"\r\n\r\n kwargs = _get_kwargs(\r\n workspace=workspace,\r\n client=client,\r\n )\r\n\r\n response = httpx.request(\r\n verify=client.verify_ssl,\r\n **kwargs,\r\n )\r\n\r\n return _build_response(response=response)\r\n```\r\n\r\n**Expected behavior**\r\nrequest body with application/vnd.api+json\r\nshould generate code like belowe \r\n```\r\ndef sync_detailed(\r\n workspace: str,\r\n *,\r\n client: Client,\r\n json_body: WorkspaceDocument,\r\n) -\u003e Response[Union[Any, WorkspaceDocument]]:\r\n \"\"\"Update a Workspace\r\n\r\n Args:\r\n workspace (str):\r\n json_body (WorkspaceDocument): JSON:API Document.\r\n\r\n see: https://jsonapi.org/format/#document-structure\r\n\r\n Returns:\r\n Response[Union[Any, WorkspaceDocument]]\r\n \"\"\"\r\n\r\n kwargs = _get_kwargs(\r\n workspace=workspace,\r\n client=client,\r\n json_body=json_body,\r\n )\r\n\r\n response = httpx.request(\r\n verify=client.verify_ssl,\r\n **kwargs,\r\n )\r\n\r\n return _build_response(response=response)\r\n```\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: [e.g. macOS 10.15.1]\r\n - Python Version: [e.g. 3.8.0]\r\n - openapi-python-client version [e.g. 0.1.0]\r\n\r\n**Additional context**\r\nAdd any other context about the problem here.\r\n","author":{"url":"https://github.com/penja","@type":"Person","name":"penja"},"datePublished":"2022-03-08T15:10:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/592/openapi-python-client/issues/592"}
| 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:8e81912e-3938-e24e-1dd8-b7ee1b38b604 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA5A:A6BB:86EE1:B43CA:69825A93 |
| html-safe-nonce | cdb1654ea9441a9c51c5d6c012acca9542769ec3fdcd9d75aa9df21463ad00d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTVBOkE2QkI6ODZFRTE6QjQzQ0E6Njk4MjVBOTMiLCJ2aXNpdG9yX2lkIjoiMjk3MTc2OTg4NjI3MzA2NzY2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 42e6de37a35b153974b327fb1c52020a708d5d37f76e0840760bc0a56adf0517 |
| hovercard-subject-tag | issue:1162774121 |
| 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/openapi-generators/openapi-python-client/592/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87f51cc2aa31ffce11ab879299a18c7f238f1f4459e23abc406ac276c0189e04/openapi-generators/openapi-python-client/issues/592 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87f51cc2aa31ffce11ab879299a18c7f238f1f4459e23abc406ac276c0189e04/openapi-generators/openapi-python-client/issues/592 |
| og:image:alt | Describe the bug The request body in specification with application/vnd.api+json don't generate json request paramers To Reproduce Steps to reproduce the behavior: Example request body requestBody:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | penja |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2bc3c2e32013a4dd01fdb54fd1244a7e41120ff63edbc321c8a14178d8474054 |
| turbo-cache-control | no-preview |
| go-import | github.com/openapi-generators/openapi-python-client git https://github.com/openapi-generators/openapi-python-client.git |
| octolytics-dimension-user_id | 84925606 |
| octolytics-dimension-user_login | openapi-generators |
| octolytics-dimension-repository_id | 240776275 |
| octolytics-dimension-repository_nwo | openapi-generators/openapi-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 240776275 |
| octolytics-dimension-repository_network_root_nwo | openapi-generators/openapi-python-client |
| 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 | 5f31d9afe0fd4cabff2441cbbd77c7f545418340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width