Title: AttributeError: 'int' object has no attribute 'replace' · Issue #414 · openapi-generators/openapi-python-client · GitHub
Open Graph Title: AttributeError: 'int' object has no attribute 'replace' · Issue #414 · openapi-generators/openapi-python-client
X Title: AttributeError: 'int' object has no attribute 'replace' · Issue #414 · openapi-generators/openapi-python-client
Description: I'm trying to convert the following API: https://start.camunda.com/openapi.json However, I'm getting the error AttributeError: 'int' object has no attribute 'replace', Stacktrace: Traceback (most recent call last): File "/usr/local/bin/o...
Open Graph Description: I'm trying to convert the following API: https://start.camunda.com/openapi.json However, I'm getting the error AttributeError: 'int' object has no attribute 'replace', Stacktrace: Traceback (most r...
X Description: I'm trying to convert the following API: https://start.camunda.com/openapi.json However, I'm getting the error AttributeError: 'int' object has no attribute 'replace', Stack...
Opengraph URL: https://github.com/openapi-generators/openapi-python-client/issues/414
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: 'int' object has no attribute 'replace'","articleBody":"I'm trying to convert the following API:\r\nhttps://start.camunda.com/openapi.json\r\n\r\nHowever, I'm getting the error `AttributeError: 'int' object has no attribute 'replace'`,\r\nStacktrace:\r\n\r\n Traceback (most recent call last):\r\n File \"/usr/local/bin/openapi-python-client\", line 8, in \u003cmodule\u003e\r\n sys.exit(app())\r\n File \"/usr/local/lib/python3.9/site-packages/typer/main.py\", line 214, in __call__\r\n return get_command(self)(*args, **kwargs)\r\n File \"/usr/local/lib/python3.9/site-packages/click/core.py\", line 829, in __call__\r\n return self.main(*args, **kwargs)\r\n File \"/usr/local/lib/python3.9/site-packages/click/core.py\", line 782, in main\r\n rv = self.invoke(ctx)\r\n File \"/usr/local/lib/python3.9/site-packages/click/core.py\", line 1259, in invoke\r\n return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n File \"/usr/local/lib/python3.9/site-packages/click/core.py\", line 1066, in invoke\r\n return ctx.invoke(self.callback, **ctx.params)\r\n File \"/usr/local/lib/python3.9/site-packages/click/core.py\", line 610, in invoke\r\n return callback(*args, **kwargs)\r\n File \"/usr/local/lib/python3.9/site-packages/typer/main.py\", line 497, in wrapper\r\n return callback(**use_params) # type: ignore\r\n File \"/usr/local/lib/python3.9/site-packages/openapi_python_client/cli.py\", line 140, in generate\r\n errors = create_new_client(\r\n File \"/usr/local/lib/python3.9/site-packages/openapi_python_client/__init__.py\", line 296, in create_new_client\r\n project = _get_project_for_url_or_path(\r\n File \"/usr/local/lib/python3.9/site-packages/openapi_python_client/__init__.py\", line 269, in _get_project_for_url_or_path\r\n openapi = GeneratorData.from_dict(data_dict, config=config)\r\n File \"/usr/local/lib/python3.9/site-packages/openapi_python_client/parser/openapi.py\", line 333, in from_dict\r\n endpoint_collections_by_tag, schemas = EndpointCollection.from_data(\r\n File \"/usr/local/lib/python3.9/site-packages/openapi_python_client/parser/openapi.py\", line 45, in from_data\r\n endpoint, schemas = Endpoint.from_data(\r\n File \"/usr/local/lib/python3.9/site-packages/openapi_python_client/parser/openapi.py\", line 283, in from_data\r\n result, schemas = Endpoint._add_parameters(endpoint=endpoint, data=data, schemas=schemas, config=config)\r\n File \"/usr/local/lib/python3.9/site-packages/openapi_python_client/parser/openapi.py\", line 217, in _add_parameters\r\n prop, schemas = property_from_data(\r\n File \"/usr/local/lib/python3.9/site-packages/openapi_python_client/parser/properties/__init__.py\", line 539, in property_from_data\r\n return _property_from_data(\r\n File \"/usr/local/lib/python3.9/site-packages/openapi_python_client/parser/properties/__init__.py\", line 462, in _property_from_data\r\n return _string_based_property(name=name, required=required, data=data), schemas\r\n File \"/usr/local/lib/python3.9/site-packages/openapi_python_client/parser/properties/__init__.py\", line 266, in _string_based_property\r\n default=convert(\"str\", data.default),\r\n File \"/usr/local/lib/python3.9/site-packages/openapi_python_client/parser/properties/converter.py\", line 33, in convert\r\n return _CONVERTERS[type_string](value)\r\n File \"/usr/local/lib/python3.9/site-packages/openapi_python_client/parser/properties/converter.py\", line 62, in _convert_string\r\n return f\"{utils.remove_string_escapes(value)!r}\"\r\n File \"/usr/local/lib/python3.9/site-packages/openapi_python_client/utils.py\", line 55, in remove_string_escapes\r\n return value.replace('\"', r\"\\\"\")\r\n AttributeError: 'int' object has no attribute 'replace'","author":{"url":"https://github.com/adrianschneider94","@type":"Person","name":"adrianschneider94"},"datePublished":"2021-05-06T11:23:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/414/openapi-python-client/issues/414"}
| 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:9c2fee44-90bc-57fa-46a2-d70d2a6c7582 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9FA6:DBF78:10892C:151DEE:69802F0C |
| html-safe-nonce | 8eca3ac7c78671913a6e1be5df5e3f76b3cede7500f59981f60a40a603cac6bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkE2OkRCRjc4OjEwODkyQzoxNTFERUU6Njk4MDJGMEMiLCJ2aXNpdG9yX2lkIjoiNjY0NjcxNDAzNjk3NTA1NDYwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c7ad5244ce1af52a28f6e486da7d51e94983afdf8e6e23921f4ac6aad462ee8e |
| hovercard-subject-tag | issue:877392926 |
| 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/414/issue_layout |
| twitter:image | https://opengraph.githubassets.com/605b7d34b8d33610b4458cc6db65b3348c5df0c8a1e6ffb2b1c3708f94892fc5/openapi-generators/openapi-python-client/issues/414 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/605b7d34b8d33610b4458cc6db65b3348c5df0c8a1e6ffb2b1c3708f94892fc5/openapi-generators/openapi-python-client/issues/414 |
| og:image:alt | I'm trying to convert the following API: https://start.camunda.com/openapi.json However, I'm getting the error AttributeError: 'int' object has no attribute 'replace', Stacktrace: Traceback (most r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adrianschneider94 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width