oneOf -> enum, api for device class schema