Allow optional third-index apiVersion for resource list

Many endpoints are now versioned beyond v1 and the current list generating doesn’t provide support for using these versioned endpoints.
why we are checking of type `string` ?