Adobe AEM
All tools

Developer Tool

Content Fragment ↔ JSON Schema.

Convert a Content Fragment Model export to a JSON Schema, or the reverse, to keep both definitions in sync. How to use

JSON Schema
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Article",
  "description": "A blog article content fragment",
  "type": "object",
  "properties": {
    "headline": {
      "type": "string"
    },
    "body": {
      "type": "string"
    },
    "publishDate": {
      "type": "string",
      "format": "date-time"
    },
    "category": {
      "type": "string",
      "enum": [
        "news",
        "sports",
        "tech"
      ]
    }
  },
  "required": [
    "headline",
    "body"
  ]
}

The CF Model JSON shape matches the export from the Content Fragment Model Generator. JSON Schema → CF Model is best-effort — JSON Schema can express things a Content Fragment Model can't, so review the result before importing. Runs entirely in your browser.