Is doc example incorrect for HTTPApiSpec?

Seems to duplicate the attributes object. Can’t tell if this is correct or not.