René's URL Explorer Experiment


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

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5654c2ac-2e1f-05d0-6fe9-82ca46f38245
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCC1C:DA408:161C266:1DDC77D:6980674C
html-safe-nonce66a7a89e4d39969f5b7344655be3de32846b21b9d376fd1469a545b49e437545
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzFDOkRBNDA4OjE2MUMyNjY6MUREQzc3RDo2OTgwNjc0QyIsInZpc2l0b3JfaWQiOiI2OTcxMDg5MzI0NTg2NTkyMDc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace0491ea47ffcfe15eb9efc019d3c487dddd87af999c695b464c343f598d19c84
hovercard-subject-tagpull_request:2371152876
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/openapi-generators/openapi-python-client/pull/1212/files
twitter:imagehttps://avatars.githubusercontent.com/u/10566965?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10566965?s=400&v=4
og:image:altThis 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/openapi-generators/openapi-python-client git https://github.com/openapi-generators/openapi-python-client.git
octolytics-dimension-user_id84925606
octolytics-dimension-user_loginopenapi-generators
octolytics-dimension-repository_id240776275
octolytics-dimension-repository_nwoopenapi-generators/openapi-python-client
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id240776275
octolytics-dimension-repository_network_root_nwoopenapi-generators/openapi-python-client
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec6a96cd078b54261c0aaa028bdbf4beca00718d1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenapi-generators%2Fopenapi-python-client%2Fpull%2F1212%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenapi-generators%2Fopenapi-python-client%2Fpull%2F1212%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=openapi-generators%2Fopenapi-python-client
Reloadhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files
Reloadhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files
Reloadhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files
openapi-generators https://patch-diff.githubusercontent.com/openapi-generators
openapi-python-clienthttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client
Please reload this pagehttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fopenapi-generators%2Fopenapi-python-client
Fork 264 https://patch-diff.githubusercontent.com/login?return_to=%2Fopenapi-generators%2Fopenapi-python-client
Star 1.9k https://patch-diff.githubusercontent.com/login?return_to=%2Fopenapi-generators%2Fopenapi-python-client
Code https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client
Issues 77 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/issues
Pull requests 14 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pulls
Discussions https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/discussions
Actions https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/actions
Security 2 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/security
Insights https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pulse
Code https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client
Issues https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/issues
Pull requests https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pulls
Discussions https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/discussions
Actions https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/actions
Security https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/security
Insights https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fopenapi-generators%2Fopenapi-python-client%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fopenapi-generators%2Fopenapi-python-client%2Fissues%2Fnew%2Fchoose
tjb346https://patch-diff.githubusercontent.com/tjb346
openapi-generators:mainhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/tree/main
tjb346:enumerate-duplicate-model-nameshttps://patch-diff.githubusercontent.com/tjb346/openapi-python-client/tree/enumerate-duplicate-model-names
Conversation 3 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212
Commits 8 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/commits
Checks 22 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/checks
Files changed https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files
Please reload this pagehttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files
Enumerate duplicate model names https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#top
Show all changes 8 commits https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files
1b8299e Add enumerate_duplicate_model_names config option tjb346 Mar 3, 2025 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/commits/1b8299ea9f422884473b7a6d8cd555a24895b87b
e37715e Update names on duplicate with config option tjb346 Mar 3, 2025 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/commits/e37715e401c08b624f2dad75c8ebf03ea3a13378
2c4e4e1 Update test tjb346 Mar 3, 2025 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/commits/2c4e4e13bef078b4cef035fab72f31e1410c4fd7
30f42ac Update README tjb346 Mar 3, 2025 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/commits/30f42ac3da08c24211a762972ac78ae9c641826f
7387585 Start enumeration at 1 tjb346 Mar 4, 2025 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/commits/73875859d6c65dfbea6debe75dc77ae5b945da33
0b93bbd Fix typo tjb346 Mar 4, 2025 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/commits/0b93bbde32c92f51e62f0f7dccb12c32cecdad45
3320062 Add changeset file tjb346 Mar 4, 2025 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/commits/33200625311bb10bcacd28dabfddadd07183fbcc
8ebcf1e Merge branch 'main' into enumerate-duplicate-model-names dbanty May 1, 2025 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/commits/8ebcf1e17953541da6e350f3c151f03e53aef92d
Clear filters https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files
Please reload this pagehttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files
Please reload this pagehttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files
enumerate_duplicate_model_names.md https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-05bc4751cff4a775d11ea224699f80d61b430b40a6ff8c7d946e81d082790bb2
README.md https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
config.py https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
model_property.py https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-847f198f92313c7725c39f40576feedc900c9717eecba3a5e70f551926128d73
test_model_property.py https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-36824c880ba9e752de856f28c0fc852da3c47b40e9ad9b6a250d38f2f251bcdb
.changeset/enumerate_duplicate_model_names.mdhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-05bc4751cff4a775d11ea224699f80d61b430b40a6ff8c7d946e81d082790bb2
View file https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/blob/8ebcf1e17953541da6e350f3c151f03e53aef92d/.changeset/enumerate_duplicate_model_names.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/{{ revealButtonHref }}
README.mdhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/blob/8ebcf1e17953541da6e350f3c151f03e53aef92d/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
openapi_python_client/config.pyhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
View file https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/blob/8ebcf1e17953541da6e350f3c151f03e53aef92d/openapi_python_client/config.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
openapi_python_client/parser/properties/model_property.pyhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-847f198f92313c7725c39f40576feedc900c9717eecba3a5e70f551926128d73
View file https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/blob/8ebcf1e17953541da6e350f3c151f03e53aef92d/openapi_python_client/parser/properties/model_property.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-847f198f92313c7725c39f40576feedc900c9717eecba3a5e70f551926128d73
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-847f198f92313c7725c39f40576feedc900c9717eecba3a5e70f551926128d73
tests/test_parser/test_properties/test_model_property.pyhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-36824c880ba9e752de856f28c0fc852da3c47b40e9ad9b6a250d38f2f251bcdb
View file https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/blob/8ebcf1e17953541da6e350f3c151f03e53aef92d/tests/test_parser/test_properties/test_model_property.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-36824c880ba9e752de856f28c0fc852da3c47b40e9ad9b6a250d38f2f251bcdb
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-36824c880ba9e752de856f28c0fc852da3c47b40e9ad9b6a250d38f2f251bcdb
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/1212/files#diff-36824c880ba9e752de856f28c0fc852da3c47b40e9ad9b6a250d38f2f251bcdb
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.