{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://cms.mydesignsystem.com/blog-post.schema.json",
  "title": "Blog Post",
  "description": "Abstracts a blog post concept into JSON schema",
  "type": "object",
  "required": ["head", "seo"],
  "properties": {
    "head": {
      "$ref": "http://schema.mydesignsystem.com/blog-head.schema.json"
    },
    "aside": {
      "$ref": "http://schema.mydesignsystem.com/blog-aside.schema.json"
    },
    "content": {
      "type": "string",
      "title": "Text",
      "description": "Body text for the blog post, overwrites sections if present",
      "format": "markdown"
    },
    "section": {
      "type": "array",
      "title": "Blog Sections",
      "description": "Collection of sections (with their contents) to render on the blog post",
      "items": {
        "$ref": "http://schema.mydesignsystem.com/section.schema.json"
      }
    },
    "cta": {
      "$ref": "http://schema.mydesignsystem.com/cta.schema.json"
    },
    "seo": {
      "$ref": "http://cms.mydesignsystem.com/seo.schema.json"
    }
  }
}
