wouldn't it be better to support both by using the "type" key ? (see below)