{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-content-schema.json",
  "title": "content",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-content-api-openapi.yml#/components/schemas/content",
  "type": "object",
  "properties": {
    "contentLink": {
      "$ref": "#/$defs/contentReference"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "language": {
      "$ref": "#/$defs/language"
    },
    "existingLanguages": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/language"
      }
    },
    "masterLanguage": {
      "$ref": "#/$defs/language"
    },
    "contentType": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "parentLink": {
      "$ref": "#/$defs/contentReference"
    },
    "routeSegment": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": [
        "string",
        "null"
      ]
    },
    "changed": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "startPublish": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "stopPublish": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "saved": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "status": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": {},
  "$defs": {
    "content": {
      "type": "object",
      "properties": {
        "contentLink": {
          "$ref": "#/$defs/contentReference"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "language": {
          "$ref": "#/$defs/language"
        },
        "existingLanguages": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/language"
          }
        },
        "masterLanguage": {
          "$ref": "#/$defs/language"
        },
        "contentType": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "parentLink": {
          "$ref": "#/$defs/contentReference"
        },
        "routeSegment": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "changed": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "created": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "startPublish": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "stopPublish": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "saved": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": {}
    },
    "contentReference": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "workId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "guidValue": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "providerName": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "language": {
          "$ref": "#/$defs/language"
        },
        "expanded": {
          "$ref": "#/$defs/content"
        }
      },
      "additionalProperties": false
    },
    "language": {
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}