It seems like this could be easily addressed by augmenting the validate block for the returns property.
Agree validation could be better but is unlikely to be fixed. Please reopen if this is still a concern.