Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

F TD2000 DOCUMENTS 05 / docx basedon run style toggle and direct property cascade

Resolve effective Word run formatting through paragraph/character style chains and direct overrides.

POST https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-05/docx-basedon-run-style-toggle-and-direct-property-cascade

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "artifact"
  ],
  "properties": {
    "artifact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "wordStyleCascade"
      ],
      "properties": {
        "wordStyleCascade": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "data",
            "claim"
          ],
          "properties": {
            "data": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "defaults",
                "styles",
                "runs"
              ],
              "properties": {
                "defaults": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "font",
                    "color",
                    "size"
                  ],
                  "properties": {
                    "font": {
                      "type": "string",
                      "maxLength": 64,
                      "minLength": 1
                    },
                    "color": {
                      "type": "string",
                      "maxLength": 32,
                      "minLength": 1
                    },
                    "size": {
                      "type": "number",
                      "minimum": 1,
                      "maximum": 1000
                    }
                  }
                },
                "styles": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "id",
                      "type",
                      "based_on",
                      "properties"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 64,
                        "minLength": 1
                      },
                      "type": {
                        "enum": [
                          "paragraph",
                          "character"
                        ]
                      },
                      "based_on": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 64,
                            "minLength": 1
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "properties": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "bold": {
                            "type": "boolean"
                          },
                          "italic": {
                            "type": "boolean"
                          },
                          "strike": {
                            "type": "boolean"
                          },
                          "font": {
                            "type": "string",
                            "maxLength": 64,
                            "minLength": 1
                          },
                          "color": {
                            "type": "string",
                            "maxLength": 32,
                            "minLength": 1
                          },
                          "size": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 1000
                          }
                        }
                      }
                    }
                  },
                  "maxItems": 64,
                  "minItems": 0
                },
                "runs": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "paragraph_style",
                      "character_style",
                      "direct"
                    ],
                    "properties": {
                      "paragraph_style": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 64,
                            "minLength": 1
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "character_style": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 64,
                            "minLength": 1
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "direct": {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "bold": {
                            "type": "boolean"
                          },
                          "italic": {
                            "type": "boolean"
                          },
                          "strike": {
                            "type": "boolean"
                          },
                          "font": {
                            "type": "string",
                            "maxLength": 64,
                            "minLength": 1
                          },
                          "color": {
                            "type": "string",
                            "maxLength": 32,
                            "minLength": 1
                          },
                          "size": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 1000
                          }
                        }
                      }
                    }
                  },
                  "maxItems": 64,
                  "minItems": 1
                }
              }
            },
            "claim": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "runs"
                  ],
                  "properties": {
                    "runs": {
                      "type": "array",
                      "maxItems": 4096,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "character_chain",
                          "effective",
                          "origins",
                          "paragraph_chain"
                        ],
                        "properties": {
                          "character_chain": {
                            "type": "array",
                            "maxItems": 4096,
                            "items": {
                              "type": "string",
                              "maxLength": 20000
                            }
                          },
                          "effective": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "bold",
                              "color",
                              "font",
                              "italic",
                              "size",
                              "strike"
                            ],
                            "properties": {
                              "bold": {
                                "type": "boolean"
                              },
                              "color": {
                                "type": "string",
                                "maxLength": 20000
                              },
                              "font": {
                                "type": "string",
                                "maxLength": 20000
                              },
                              "italic": {
                                "type": "boolean"
                              },
                              "size": {
                                "type": "number",
                                "minimum": -1000000000000,
                                "maximum": 1000000000000
                              },
                              "strike": {
                                "type": "boolean"
                              }
                            }
                          },
                          "origins": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "bold",
                              "color",
                              "font",
                              "italic",
                              "size",
                              "strike"
                            ],
                            "properties": {
                              "bold": {
                                "type": "string",
                                "maxLength": 20000
                              },
                              "color": {
                                "type": "string",
                                "maxLength": 20000
                              },
                              "font": {
                                "type": "string",
                                "maxLength": 20000
                              },
                              "italic": {
                                "type": "string",
                                "maxLength": 20000
                              },
                              "size": {
                                "type": "string",
                                "maxLength": 20000
                              },
                              "strike": {
                                "type": "string",
                                "maxLength": 20000
                              }
                            }
                          },
                          "paragraph_chain": {
                            "type": "array",
                            "maxItems": 4096,
                            "items": {
                              "type": "string",
                              "maxLength": 20000
                            }
                          }
                        }
                      }
                    }
                  }
                }
              ]
            }
          }
        }
      }
    }
  }
}

Originalschema öffnen

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →