{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bynder/json-schema/bynder-document-content-body-schema.json",
  "title": "DocumentContentBody",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bynder-document-api-openapi.yml#/components/schemas/DocumentContentBody",
  "required": [
    "data"
  ],
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/Resourcerepresentingthecontentinadocument1"
    }
  },
  "$defs": {
    "Attributes": {
      "title": "Attributes",
      "type": "object",
      "properties": {
        "document": {
          "type": "string",
          "description": "ProseMirror JSON Object (https://prosemirror.net/docs/ref/#model.Document_Structure)"
        },
        "html": {
          "type": "string",
          "description": "HTML string"
        },
        "documentGroupId": {
          "type": "string",
          "description": "The group id to which the document belongs. This is used to group documents together."
        }
      }
    },
    "Resourcerepresentingthecontentinadocument1": {
      "title": "Resourcerepresentingthecontentinadocument1",
      "required": [
        "id",
        "type",
        "attributes"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "UUID identifier",
          "contentEncoding": "uuid"
        },
        "type": {
          "const": "document",
          "type": "string",
          "description": "Resource type"
        },
        "attributes": {
          "$ref": "#/$defs/Attributes"
        }
      }
    }
  }
}