> For the complete documentation index, see [llms.txt](https://docs.powerpointgeneratorapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powerpointgeneratorapi.com/examples/tagging/tag-validation-mode.md).

# Tag Validation Mode

1. Can be applied at the presentation level or slide level (the lowest level takes precedence).
2. Select between the two modes: [#strict](#strict "mention") or [#lenient](#lenient "mention")

### Strict

1. The system validates all tags defined in the payload.
2. If any tag is missing from the template.pptx, a `VALIDATION_ERROR` (400) is returned.

Reference: [tags](/json-template-syntax/tags.md)

Download: [input.zip](https://drive.google.com/uc?export=download\&id=1-ou1x1WjiEOmhxMj7jUss85hS85CkESc)

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="/files/RZl7u4VLKUwily8l1cg8" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="58.33333333333333%" %}
{% code lineNumbers="true" %}

```json
{
  "presentation": {
    "template": "template.pptx",
    "tag_validation_mode": "strict",
    "slides": [
      {
        "slide_index": 0,
        "tags": [
          {
            "key": "non-existent-tag",
            "value": "ONE"
          },
          {
            "key": "date",
            "value": "TWO"
          },
          {
            "key": "client",
            "value": "THREE"
          },
          {
            "key": "type",
            "value": "FOUR"
          },
          {
            "key": "month",
            "value": "FIVE"
          }
        ]
      }
    ]
  }
}

```

{% endcode %}
{% endcolumn %}
{% endcolumns %}

### Lenient

1. Missing tags are skipped without interrupting execution.
2. This mode is useful when working with templates that have optional placeholders or evolving structures.

Reference: [tags](/json-template-syntax/tags.md)

Download: [input.zip](https://drive.google.com/uc?export=download\&id=1VwMvF4DU16NoW37-n4MEQl7pFpeD0W6w) | [output.pptx](https://drive.google.com/uc?export=download\&id=1-thmVhz_GgRuLGKvAUM0_ZEMW-IpetxD)

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="/files/RZl7u4VLKUwily8l1cg8" alt=""><figcaption></figcaption></figure>

***

<figure><img src="/files/aglw0RF73ndBH3Iz9zUh" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="58.33333333333333%" %}
{% code lineNumbers="true" %}

```json
{
  "presentation": {
    "template": "template.pptx",
    "tag_validation_mode": "lenient",
    "slides": [
      {
        "type": "slide",
        "slide_index": 0,
        "tags": [
          {
            "key": "non-existent-tag",
            "value": "ONE"
          },
          {
            "key": "date",
            "value": "TWO"
          },
          {
            "key": "client",
            "value": "THREE"
          },
          {
            "key": "type",
            "value": "FOUR"
          },
          {
            "key": "month",
            "value": "FIVE"
          }
        ]
      }
    ]
  }
}

```

{% endcode %}
{% endcolumn %}
{% endcolumns %}
