Skip to content

Instantly share code, notes, and snippets.

@jeanbispo
Created February 21, 2025 19:05
Show Gist options
  • Save jeanbispo/2472267622fa92c2f26e17e425aa00dd to your computer and use it in GitHub Desktop.
Save jeanbispo/2472267622fa92c2f26e17e425aa00dd to your computer and use it in GitHub Desktop.
metafieldjsonschemacompraanteciapda.json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Generated schema for Root",
"type": "array",
"items": {
"type": "object",
"properties": {
"sku": {
"type": "string"
},
"prazo": {
"type": "string"
},
"variants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"variant_id": {
"type": "string"
},
"selling_plan": {
"type": "string"
}
},
"required": [
"variant_id",
"selling_plan"
]
}
}
},
"required": [
"sku",
"prazo",
"variants"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment