You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenAPI's PHP generator has a bug when it comes to oneOf of primitive types. If someone runs into this we'll need to help them out with this, it's really friggin' bizarre.
This parsed response in BAML:
Becomes this in PHP:
echo "<pre> ParseEmail was a FlightConfirmation as json: " . $resp->__toString() . "</pre>";
The text was updated successfully, but these errors were encountered:
sxlijin
changed the title
bug in OpenAPI/php: unions of primitives drop data
feature request: workaround OpenAPI/PHP's lack of support for oneOf
Sep 6, 2024
- add a ruby example
- nulls are now handled with significantly less boilerplate
- oneOfs are handled (mostly) correctly (PHP is an unfortunate exception: BoundaryML/baml#926)
OpenAPI's PHP generator has a bug when it comes to
oneOf
of primitive types. If someone runs into this we'll need to help them out with this, it's really friggin' bizarre.This parsed response in BAML:
Becomes this in PHP:
The text was updated successfully, but these errors were encountered: