App toml with validations options

I edit my Shopify.app.toml with new meta objects. This works quite well so far, but I would like to add a validation to a metaobject that is stored as a list so that only certain options are available. Unfortunately, I can’t find a way to do this.

The list in the help section doesn’t help me, as it is for graphql.

my toml:

[metaobjects.app.preis.fields.voucher_status]
name = "Gutschein Status"
type = "list.single_line_text_field"
validations = [ name = "choices" value = "Test", "Test3"]

Bildschirmfoto 2025-09-06 um 16.31.31

According to Claude Code and the MCP, the following is also suggested to me, but that doesn’t work either:

[metaobjects.app.events.fields.status]
name = "Status"
type = "list.single_line_text_field"
type = "single_line_text_field"
    
   [[metaobjects.app.events.fields.status.validations]]
   name = "choices"
   value = "[\"geplant\", \"aktiv\", \"abgeschlossen\", \"abgesagt\"]"

Please refer to the documentation, this is explicitly documented: Declarative custom data definitions

That’s what I was looking for, but somehow I always ended up on the wrong page.

Thank you very much.