Rename "type" to "schema"