Title: Exception when generating list properties in multipart forms · Issue #451 · openapi-generators/openapi-python-client · GitHub
Open Graph Title: Exception when generating list properties in multipart forms · Issue #451 · openapi-generators/openapi-python-client
X Title: Exception when generating list properties in multipart forms · Issue #451 · openapi-generators/openapi-python-client
Description: After upgrading from 0.9.2 to 0.10.0 the client generation fails with: Traceback (most recent call last): File "REDACTED/.venv/bin/openapi-python-client", line 8, in
Open Graph Description: After upgrading from 0.9.2 to 0.10.0 the client generation fails with: Traceback (most recent call last): File "REDACTED/.venv/bin/openapi-python-client", line 8, in
X Description: After upgrading from 0.9.2 to 0.10.0 the client generation fails with: Traceback (most recent call last): File "REDACTED/.venv/bin/openapi-python-client", line 8, in <module> sys.ex...
Opengraph URL: https://github.com/openapi-generators/openapi-python-client/issues/451
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exception when generating list properties in multipart forms","articleBody":"After upgrading from 0.9.2 to 0.10.0 the client generation fails with:\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"REDACTED/.venv/bin/openapi-python-client\", line 8, in \u003cmodule\u003e\r\n sys.exit(app())\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/typer/main.py\", line 214, in __call__\r\n return get_command(self)(*args, **kwargs)\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/click/core.py\", line 829, in __call__\r\n return self.main(*args, **kwargs)\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/click/core.py\", line 782, in main\r\n rv = self.invoke(ctx)\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/click/core.py\", line 1259, in invoke\r\n return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/click/core.py\", line 1066, in invoke\r\n return ctx.invoke(self.callback, **ctx.params)\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/click/core.py\", line 610, in invoke\r\n return callback(*args, **kwargs)\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/typer/main.py\", line 497, in wrapper\r\n return callback(**use_params) # type: ignore\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/openapi_python_client/cli.py\", line 141, in generate\r\n errors = create_new_client(\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/openapi_python_client/__init__.py\", line 314, in create_new_client\r\n return project.build()\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/openapi_python_client/__init__.py\", line 108, in build\r\n self._build_api()\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/openapi_python_client/__init__.py\", line 263, in _build_api\r\n module_path.write_text(endpoint_template.render(endpoint=endpoint), encoding=self.file_encoding)\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/jinja2/environment.py\", line 1289, in render\r\n self.environment.handle_exception()\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/jinja2/environment.py\", line 924, in handle_exception\r\n raise rewrite_traceback_stack(source=source)\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/openapi_python_client/templates/endpoint_module.py.jinja\", line 38, in top-level template code\r\n {{ multipart_body(endpoint) | indent(4) }}\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/jinja2/runtime.py\", line 828, in _invoke\r\n rv = self._func(*arguments)\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/openapi_python_client/templates/endpoint_macros.py.jinja\", line 80, in template\r\n {{ transform_multipart(property, property.python_name, destination) }}\r\n File \"REDACTED/.venv/lib/python3.8/site-packages/jinja2/utils.py\", line 81, in from_obj\r\n if hasattr(obj, \"jinja_pass_arg\"):\r\njinja2.exceptions.UndefinedError: the template 'property_templates/list_property.py.jinja' (imported on line 79 in 'endpoint_macros.py.jinja') does not export the requested name 'transform_multipart'\r\n```\r\n","author":{"url":"https://github.com/dpursehouse","@type":"Person","name":"dpursehouse"},"datePublished":"2021-07-07T08:11:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/451/openapi-python-client/issues/451"}
| 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:9487e23c-6a4a-f718-57c4-1702121540c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC0E:3895A:C1514:102ACE:698253FC |
| html-safe-nonce | e43caf493462bd51ec95ba44ad8b4f4a306cd16f1964e3022bc8f7b66d049f26 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzBFOjM4OTVBOkMxNTE0OjEwMkFDRTo2OTgyNTNGQyIsInZpc2l0b3JfaWQiOiI1NTA2NzM5NjU5NzQyNTMyNjA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 80c4f30013a529d375650986d408bdf664b3f4851417c0358307779b10ddace2 |
| hovercard-subject-tag | issue:938616479 |
| 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/451/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b500079732e401b760eff7153ec16d8e7543843690fb40dc7389dc1771be508a/openapi-generators/openapi-python-client/issues/451 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b500079732e401b760eff7153ec16d8e7543843690fb40dc7389dc1771be508a/openapi-generators/openapi-python-client/issues/451 |
| og:image:alt | After upgrading from 0.9.2 to 0.10.0 the client generation fails with: Traceback (most recent call last): File "REDACTED/.venv/bin/openapi-python-client", line 8, in |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dpursehouse |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5a7140cc648b2cdbea97926248d63eb74cfc2f06ec2c0582e23ad07913b6c9fe |
| 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 | eae0a2862c46988d0b368534d563f8e044fa42ea |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width