> 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/shape/shape-validation-mode.md).

# Shape validation mode

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

See below to learn more about each mode:

### Strict

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

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

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

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

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

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

```json
{
    "presentation": {
        "template": "template.pptx",
        "shape_validation_mode": "strict",
        "slides": [
            {
                "slide_index": 0,
                "shapes": [
                    {
                        "name": "TextBox 1",
                        "text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"
                    },
                    {
                        "name": "TextBox 500",
                        "text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"
                    },
                    {
                        "name": "TextBox 600",
                        "text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"
                    },
                    {
                        "name": "TextBox 4",
                        "text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"
                    }
                ]
            }
        ]
    }
}
```

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

### Lenient

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

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

Download: [input.zip](https://drive.google.com/uc?export=download\&id=1E8ofueM6hVMXGxFxta2TIA7aAK00eTGu) | [output.pptx](https://drive.google.com/uc?export=download\&id=1rx-KPV1rLxC7pSkYZWP793z52d5DRI5f)

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

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

***

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

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

```json
{
    "presentation": {
        "template": "template.pptx",
        "shape_validation_mode": "lenient",
        "slides": [
            {
                "slide_index": 0,
                "shapes": [
                    {
                        "name": "TextBox 1",
                        "text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"
                    },
                    {
                        "name": "TextBox 500",
                        "text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"
                    },
                    {
                        "name": "TextBox 600",
                        "text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"
                    },
                    {
                        "name": "TextBox 4",
                        "text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"
                    }
                ]
            }
        ]
    }
}
```

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