Shopify CLI gives misleading error for declarative data

Hi,

When using declarative custom data, I tried this:

validations.file_type_options = ["image"]

And Shopify CLI gave me this error, which confused me:

image

It appears that the correct file_type_options is Image (capitalized I), but Shopify CLI return everything lowercase.