apioo / psx

PSX is an innovative PHP framework dedicated to build fully typed REST APIs.
https://phpsx.org
Apache License 2.0
170 stars 13 forks source link

Data schema add support for different types #9

Closed chriskapp closed 9 years ago

chriskapp commented 9 years ago

At the moment it is not possible to define an value which contains different types. It is only possible to set one specific type. This could be implemented by JsonSchema with "oneOf" and by XSD with "xsd:choice".

chriskapp commented 9 years ago

Implemented in the v1.0.3 release