glideapps / quicktype

Generate types and converters from JSON, Schema, and GraphQL
https://app.quicktype.io
Apache License 2.0
12.12k stars 1.06k forks source link

Add support for UUIDs in PHP #2407

Open pengpixel opened 12 months ago

pengpixel commented 12 months ago

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: