I’m trying to use a variable in my input query for a shipping customisation function.
I’ve followed the steps here https://shopify.dev/docs/apps/functions/input-output/variables-queries
But I’m getting the following error
Validation errors
• input.variables: Variable definitions are missing. Ensure you have defined them in your extension
configuration and that you are using a supported CLI version. See documentation for details:
https://shopify.dev/api/functions/input-query-variables
My shopify cli is at the latest available version (3.50.1)
My extensions/my-delivery-customisation/shopify.extension.toml file looks like this
api_version = "2023-10"
[[extensions]]
handle = "my-delivery-customization"
name = "t:name"
description = "t:description"
type = "function"
[[extensions.targeting]]
target = "purchase.delivery-customization.run"
input_query = "src/run.graphql"
export = "run"
[extensions.build]
command = ""
path = "dist/function.wasm"
[extensions.ui.paths]
create = "/"
details = "/"
[input.variables]
namespace = "$app:my-delivery-function"
key = "shipping-config"
My query looks like this
query RunInput($freeTags: [String!]) {
cart{
buyerIdentity {
email
customer{
isVIP: hasAnyTag(tags: $freeTags)
}
}
deliveryGroups {
deliveryOptions {
title
handle
}
}
}
}
I have created a json metafield with that key and that namespace.
Thank you for your help


