"doc" field should not be included in schema resolution

According to the avro spec the doc attribute should be ignored for the purposes of schema resolution. But when calling the /subjects/(subject) API I get 404 Schema not found when some field’s doc attribute does not match the schema in registry.