René's URL Explorer Experiment


Title: Allow case sensitive enum values by expobrain · Pull Request #725 · openapi-generators/openapi-python-client · GitHub

Open Graph Title: Allow case sensitive enum values by expobrain · Pull Request #725 · openapi-generators/openapi-python-client

X Title: Allow case sensitive enum values by expobrain · Pull Request #725 · openapi-generators/openapi-python-client

Description: Added setting case_sensitive_enums to allow case sensitive enum values in the generated code. This solve the issue in #587 . Also, to avoid collisions, changes the prefix for values not starting with alphanumeric characters from VALUE_ to LITERAL_. How could it happen Consider the case [1, "1bc"], the previous code would assign the enum VALUE_1 to the first item (aka the VALUE_ prefix plus the int value of the item) and the same enum VALUE_1 for the second item (the prefix VALUE_ plus the position of the non-alphanumeric value in the list). The new code avoids that and use different prefixes for integer values (VALUE_{value}) and string starting with non-alphanumeric characters (LITERAL_{sanitised_value}).

Open Graph Description: Added setting case_sensitive_enums to allow case sensitive enum values in the generated code. This solve the issue in #587 . Also, to avoid collisions, changes the prefix for values not starting wi...

X Description: Added setting case_sensitive_enums to allow case sensitive enum values in the generated code. This solve the issue in #587 . Also, to avoid collisions, changes the prefix for values not starting wi...

Opengraph URL: https://github.com/openapi-generators/openapi-python-client/pull/725

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:50c5e63c-f2eb-7cd1-1629-e8d1a3e52256
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD8DA:1D5C91:675BE9:8C1331:69811760
html-safe-nonceb6f8a939f45f5cd863045f16bec7247be163b5f45eb587d085389bf0d10e4fbd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOERBOjFENUM5MTo2NzVCRTk6OEMxMzMxOjY5ODExNzYwIiwidmlzaXRvcl9pZCI6IjUyNzI3OTA1MTkwOTE2MzE5NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3b880056c23273c75178feda6c2516b12d7079d853a3637fc66342218fbcd0a2
hovercard-subject-tagpull_request:1247885795
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/725/files
twitter:imagehttps://avatars.githubusercontent.com/u/2404909?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2404909?s=400&v=4
og:image:altAdded setting case_sensitive_enums to allow case sensitive enum values in the generated code. This solve the issue in #587 . Also, to avoid collisions, changes the prefix for values not starting wi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None39fe8101494cbb823c09b619b68c80cd4d05ab7279997038dbe06bb91608abe1
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
released5b34a4e4898b066c629879feb4b184bc471d6a7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/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%2F725%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%2F725%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/725/files
Reloadhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files
Reloadhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/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/725/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
expobrainhttps://patch-diff.githubusercontent.com/expobrain
openapi-generators:mainhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/tree/main
expobrain:case_sensitive_enum_valueshttps://patch-diff.githubusercontent.com/expobrain/openapi-python-client/tree/case_sensitive_enum_values
Conversation 12 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725
Commits 3 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/commits
Checks 0 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/checks
Files changed https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files
Please reload this pagehttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files
Allow case sensitive enum values https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#top
Show all changes 3 commits https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files
5560f54 Allow case sensitive enum values Feb 13, 2023 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/commits/5560f549c70ee216f4382ad812063b448958a0ee
d900cfb Renamed function to better match its scope Aug 29, 2024 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/commits/d900cfbdd7e9a091f512bf8caecef6f1ceb71ed0
7a46c65 Added changeset file Aug 29, 2024 https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/commits/7a46c6517a2a371569cf506c6c2791e238381524
Clear filters https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files
Please reload this pagehttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files
Please reload this pagehttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files
allow_case_sensitive_enum_values.md https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-a871a3d789d06ef2767215f3e17073301490b4d4d5dcaebc9155b9308f6c21ca
config.py https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
enum_property.py https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-fb0de65c348bbc145f96f06e34cfd9d747de28549407a7206b6f49e4a82a02a1
utils.py https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-21dcfdd70f3703fe9a54f70d6328ca64d245e91da7478347b47ec3897f1cfa91
test_config.py https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-da24b355349b53e4c8047034767d008e4c2ce9ea6c8933a3acd50d0828f00528
test_init.py https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-93e7900739ea0ba02a4039d5b1c59d85a32c4113d86118db3b334f07b974f891
.changeset/allow_case_sensitive_enum_values.mdhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-a871a3d789d06ef2767215f3e17073301490b4d4d5dcaebc9155b9308f6c21ca
View file https://patch-diff.githubusercontent.com/expobrain/openapi-python-client/blob/7a46c6517a2a371569cf506c6c2791e238381524/.changeset/allow_case_sensitive_enum_values.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/{{ revealButtonHref }}
openapi_python_client/config.pyhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
View file https://patch-diff.githubusercontent.com/expobrain/openapi-python-client/blob/7a46c6517a2a371569cf506c6c2791e238381524/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/725/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-cf4ddb3efe5c096942c426c2e214746c4d78d57f35c59f7d32438ee1d6160382
openapi_python_client/parser/properties/enum_property.pyhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-fb0de65c348bbc145f96f06e34cfd9d747de28549407a7206b6f49e4a82a02a1
View file https://patch-diff.githubusercontent.com/expobrain/openapi-python-client/blob/7a46c6517a2a371569cf506c6c2791e238381524/openapi_python_client/parser/properties/enum_property.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-fb0de65c348bbc145f96f06e34cfd9d747de28549407a7206b6f49e4a82a02a1
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-fb0de65c348bbc145f96f06e34cfd9d747de28549407a7206b6f49e4a82a02a1
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-fb0de65c348bbc145f96f06e34cfd9d747de28549407a7206b6f49e4a82a02a1
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-fb0de65c348bbc145f96f06e34cfd9d747de28549407a7206b6f49e4a82a02a1
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-fb0de65c348bbc145f96f06e34cfd9d747de28549407a7206b6f49e4a82a02a1
openapi_python_client/utils.pyhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-21dcfdd70f3703fe9a54f70d6328ca64d245e91da7478347b47ec3897f1cfa91
View file https://patch-diff.githubusercontent.com/expobrain/openapi-python-client/blob/7a46c6517a2a371569cf506c6c2791e238381524/openapi_python_client/utils.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-21dcfdd70f3703fe9a54f70d6328ca64d245e91da7478347b47ec3897f1cfa91
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-21dcfdd70f3703fe9a54f70d6328ca64d245e91da7478347b47ec3897f1cfa91
tests/test_config.pyhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-da24b355349b53e4c8047034767d008e4c2ce9ea6c8933a3acd50d0828f00528
View file https://patch-diff.githubusercontent.com/expobrain/openapi-python-client/blob/7a46c6517a2a371569cf506c6c2791e238381524/tests/test_config.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-da24b355349b53e4c8047034767d008e4c2ce9ea6c8933a3acd50d0828f00528
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-da24b355349b53e4c8047034767d008e4c2ce9ea6c8933a3acd50d0828f00528
tests/test_parser/test_properties/test_init.pyhttps://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-93e7900739ea0ba02a4039d5b1c59d85a32c4113d86118db3b334f07b974f891
View file https://patch-diff.githubusercontent.com/expobrain/openapi-python-client/blob/7a46c6517a2a371569cf506c6c2791e238381524/tests/test_parser/test_properties/test_init.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-93e7900739ea0ba02a4039d5b1c59d85a32c4113d86118db3b334f07b974f891
https://patch-diff.githubusercontent.com/openapi-generators/openapi-python-client/pull/725/files#diff-93e7900739ea0ba02a4039d5b1c59d85a32c4113d86118db3b334f07b974f891
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.