Skip to content

Instantly share code, notes, and snippets.

@tcorral
Created February 24, 2017 12:53
Show Gist options
  • Save tcorral/35acedd2ed7b351b945b88c010626420 to your computer and use it in GitHub Desktop.
Save tcorral/35acedd2ed7b351b945b88c010626420 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"name:": {
"type": "string",
"metadata": {
"placeholderText": "Enter the name of the product"
}
},
"title": {
"type": "string",
"metadata": {
"placeholderText": "Enter the title"
}
},
"subtitle": {
"type": "string",
"metadata": {
"placeholderText": "Enter the subtitle"
}
},
"description": {
"type": "string",
"metadata": {
"renderingHint": "richTextEditor"
}
},
"usagesTitle": {
"type": "string"
},
"usages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"item": {
"type": "string"
}
},
"required": [
"item"
]
}
},
"briefBenefits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"item": {
"type": "string"
}
},
"required": [
"item"
]
}
},
"benefits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"paragraphs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"intitle": {
"type": "string"
},
"content": {
"type": "string",
"metadata": {
"renderingHint": "richTextEditor"
}
}
},
"required": [
"intitle",
"content"
]
}
}
},
"required": [
"key",
"paragraphs"
]
}
}
},
"required": [
"name:",
"title",
"subtitle",
"description"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment