Skip to content

Commit 2c6ceb0

Browse files
authored
Merge pull request #153 from Shopify/alessandro/c-val
Add checkout validation function templates
2 parents 2112628 + 11a542e commit 2c6ceb0

File tree

11 files changed

+5899
-0
lines changed

11 files changed

+5899
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[package]
2+
name = "{{name | replace: " ", "-" | downcase}}"
3+
version = "1.0.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
serde = { version = "1.0.13", features = ["derive"] }
8+
serde_json = "1.0"
9+
shopify_function = { version = "0.2.3" }
10+
graphql_client = { git = "https://github.com/graphql-rust/graphql-client" }
11+
12+
[profile.release]
13+
lto = true
14+
opt-level = 'z'
15+
strip = true
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
query Input {
2+
cart {
3+
lines {
4+
quantity
5+
}
6+
}
7+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"schemaVersions":{"checkout_validation":{"major":1,"minor":0}}}

0 commit comments

Comments
 (0)