Parse and validate a shard specification string ("<index>/<total>", e.g. "1/3") or object.
"<index>/<total>"
"1/3"
Error when the format is invalid or 1 <= index <= total does not hold.
1 <= index <= total
Parse and validate a shard specification string (
"<index>/<total>", e.g."1/3") or object.