Metafield dimension units documentation

I’ve encountered a possible discrepancy between the documentation of dimension units, which expects lower-case abbreviated units:

and the actual API, which returns and expects upper-case full units: CENTIMETERS, FEET, etc.):
{“value”:515.0,“unit”:“FEET”}

When should I use ‘cm’ vs ‘CENTIMETERS’?