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
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:50c5e63c-f2eb-7cd1-1629-e8d1a3e52256 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D8DA:1D5C91:675BE9:8C1331:69811760 |
| html-safe-nonce | b6f8a939f45f5cd863045f16bec7247be163b5f45eb587d085389bf0d10e4fbd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOERBOjFENUM5MTo2NzVCRTk6OEMxMzMxOjY5ODExNzYwIiwidmlzaXRvcl9pZCI6IjUyNzI3OTA1MTkwOTE2MzE5NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3b880056c23273c75178feda6c2516b12d7079d853a3637fc66342218fbcd0a2 |
| hovercard-subject-tag | pull_request:1247885795 |
| 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/725/files |
| twitter:image | https://avatars.githubusercontent.com/u/2404909?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2404909?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 39fe8101494cbb823c09b619b68c80cd4d05ab7279997038dbe06bb91608abe1 |
| 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 | d5b34a4e4898b066c629879feb4b184bc471d6a7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width