Hello,
So for using the MisdPhoneNumberBundle I have wrote a custom normalizer (https://gist.github.com/polc/8e6ce48e9dcb33a36e9c5a632e80ed10).
Everything is working fine when I have just one entity: https://gist.github.com/polc/73b1c9f47c68682880714185b1ce1a57
When I do POST /entities
{
"mobilePhone": "0620202020"
}
Then I get
{
"@context": "/contexts/Entity",
"@id": "/entities/1",
"@type": "Entity",
"mobilePhone": "+33623025411"
}
But when I use phone_number type in a sub entity : https://gist.github.com/polc/a69ee44024be9f4789d3773eb3ee1e89
When I do POST /entities
{
"address": {
"mobilePhone": "0620202020"
}
}
I got Expected argument of type \"libphonenumber\\PhoneNumber\", \"string\" given
Note that Common\Address isn't a resource, just an entity.
Hello,
So for using the
MisdPhoneNumberBundleI have wrote a custom normalizer (https://gist.github.com/polc/8e6ce48e9dcb33a36e9c5a632e80ed10).Everything is working fine when I have just one entity: https://gist.github.com/polc/73b1c9f47c68682880714185b1ce1a57
When I do
POST /entitiesThen I get
But when I use
phone_numbertype in a sub entity : https://gist.github.com/polc/a69ee44024be9f4789d3773eb3ee1e89When I do
POST /entitiesI got
Expected argument of type \"libphonenumber\\PhoneNumber\", \"string\" givenNote that
Common\Addressisn't a resource, just an entity.