Title: Enumerate duplicate model names by tjb346 · Pull Request #1212 · openapi-generators/openapi-python-client · GitHub
Open Graph Title: Enumerate duplicate model names by tjb346 · Pull Request #1212 · openapi-generators/openapi-python-client
X Title: Enumerate duplicate model names by tjb346 · Pull Request #1212 · openapi-generators/openapi-python-client
Description: This addresses: #652 Even with use_path_prefixes_for_title_model_names set to true, duplicate model class names can occur. By default, when duplicates are encountered they will be skipped. This can cause error when they are referenced later. This PR enables setting enumerate_duplicate_model_names to true (false by default) in the config file which will result in a number being added to duplicate names starting with 1. For instance, if there are multiple occurrences in the schema of MyModelName, the initial occurrence will remain MyModelName and subsequent occurrences will be named MyModelName1, MyModelName2 and so on. The existing test_model_name_conflict test is updated to account for this new config option.
Open Graph Description: This addresses: #652 Even with use_path_prefixes_for_title_model_names set to true, duplicate model class names can occur. By default, when duplicates are encountered they will be skipped. This can...
X Description: This addresses: #652 Even with use_path_prefixes_for_title_model_names set to true, duplicate model class names can occur. By default, when duplicates are encountered they will be skipped. This can...
Opengraph URL: https://github.com/openapi-generators/openapi-python-client/pull/1212
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e9700ad9-a4d8-6ee4-3b39-db5723f45a80 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CCDC:B561:FDC6EE:15DB7D5:6980B629 |
| html-safe-nonce | b667cd191c679245f4bfd004042243fa6d2e23fddc2e6a17f8eb59c23f6f70ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0RDOkI1NjE6RkRDNkVFOjE1REI3RDU6Njk4MEI2MjkiLCJ2aXNpdG9yX2lkIjoiMTUyMDc1MjY1MDMxOTA4MzA0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c30c4e3decded90a8ceafe32c4886a3f6ff7beb72ba22378fddd17f3a6ee41ea |
| hovercard-subject-tag | pull_request:2371152876 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/openapi-generators/openapi-python-client/pull/1212/files |
| twitter:image | https://avatars.githubusercontent.com/u/10566965?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10566965?s=400&v=4 |
| og:image:alt | This addresses: #652 Even with use_path_prefixes_for_title_model_names set to true, duplicate model class names can occur. By default, when duplicates are encountered they will be skipped. This can... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d5070894b88d5cf03785c677c23c659b0431dfc2e6df2f35e35f2e0de9ceb94a |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 821a5a2664fd1c2441fb3caded98e0f525bf913f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width