Last active
December 12, 2015 05:28
-
-
Save tsmango/4722181 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"state:": "String; Pick From: unlisted, announced, available, unavailable", | |
"name": "String", | |
"description": "String or null", | |
"music_catalog_number": "String or null", | |
"music_pressing_information": "String or null", | |
"categories": ["Category Name", "Another Category Name", ...], | |
"images": ["http://...address-of-public-image", "http://...address-of-another-public-image", ...], | |
"variations": [ | |
{ | |
"name": "String", | |
"requires_exact_payment": true, | |
"price": 12.0, | |
"inventory_tracked": true, | |
"remaining_inventory": 5, | |
"cart_limit": null, | |
"digital_item": "Name of Digital Item to Associate or null", | |
"shipping_profile": "Name of Shipping Profile to Associate or null for digital only" | |
}, ... | |
] | |
}, ... | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "object", | |
"properties": { | |
"state": {"type": "string", "pattern": "^unlisted|announced|available|unavailable$", "required": true}, | |
"name": {"type": "string", "required": true}, | |
"description": {"type": ["string", "null"]}, | |
"music_catalog_number": {"type": ["string", "null"]}, | |
"music_pressing_information": {"type": ["string", "null"]}, | |
"categories": {"type": "array", "items": {"type": "string"}, "required": true, "uniqueItems": true}, | |
"images": {"type": "array", "items": {"type": "string", "pattern": "#{URL}"}, "required": true, "uniqueItems": true}, | |
"variations": {"type": "array", "items": { | |
"type": "object", | |
"properties": { | |
"name": {"type": "string", "required": true}, | |
"requires_exact_payment": {"type": "boolean", "required": true}, | |
"price": {"type": "number", "required": true, "minimum": 0}, | |
"inventory_tracked": {"type": "boolean", "required": true}, | |
"remaining_inventory": {"type": ["integer", "null"], "minimum": 0}, | |
"cart_limit": {"type": ["integer", "null"], "minimum": 0}, | |
"digital_item": {"type": ["string", "null"]}, | |
"shipping_profile": {"type": ["string", "null"]} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment