Attempting to run the suggested example in Runkit, I see this (screen capture is attached): https://www.dropbox.com/s/vchk5v7qu9n664f/Screenshot%202018-07-01%2010.02.11.png?dl=0
I'm not sure why the validation failed; An "aliases" array with a single record is expected?