This seems like it 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.