Use known_attributes instead of attributes for matching error messages

Enables support for errors on unassigned attributes that have been
specified in the schema