Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for UUIDs in PHP #2407

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pengpixel
Copy link

For PHP the UUID is already mapped as a string, but had no implementation yet and threw an error.
If you have a schema which includes UUIDs and want to generate code for e.g. C# and PHP, the latter will fail. Giving you the choice to either maintain 2 schema files or just use strings for UUID values.

So this PR will:

  • keep the string mapping and resolve the todo by validating the value with a regex, as PHP does not have built-in support for UUIDs

pengpixel and others added 3 commits September 18, 2023 14:05
* UUID is already mapped as a string,
  but had no implementation yet

* as PHP does not have built-in support for UUIDs,
  only validate UUID strings with a regex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants