Tripped me up: in Avro records the `type` property must be “A JSON object defining a schema, or a JSON string naming a record definition.”