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:340510d6-048d-5a9d-2126-44e7f7814a64 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D64E:871F9:694E26:93068B:69820096 |
| html-safe-nonce | e50c69cce5981270078b6d8b659cd98ec82ddeed72001781adc1e158b55704c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjRFOjg3MUY5OjY5NEUyNjo5MzA2OEI6Njk4MjAwOTYiLCJ2aXNpdG9yX2lkIjoiODg0MDkyMzgyMzg5NDI5ODc3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 556b2b31e3475bd1bf72963dedc04d05447a8f1edd2dbe48b3a2855da19538be |
| 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 | f4cb77e7923981a0a29ff46912061418d80b11552a75801d8d7c2ee8194cdf49 |
| 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 | 6eb708d72c4c803e32ae3b4faa5399fecafdddf7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width