components/elements/ChartGrid/schema.jsjavascript
/** Content-block contract of the "chartGrid" element (pattern: StoryTitle/schema.js). */
export default {
type: "chartGrid",
region: "content",
required: ["items"],
properties: {
items: {
type: "array",
minItems: 1,
maxItems: 2,
items: {
type: "object",
additionalProperties: false,
required: ["image"],
properties: {
title: { type: "string" },
image: { type: "string", pattern: "^/assets/.+" },
},
},
},
},
};