> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanova.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Social Media category schema

> Validate social media category

Validate social media category

## Schema Structure

This category uses the standard QR code category structure.

## Components Used

This category uses the following components:

* [Company Branding](/guides/category-components/components/company_branding)
* [Custom Script](/guides/category-components/components/custom_script)
* [Description Box](/guides/category-components/components/description_box)
* [File](/guides/category-components/components/file)
* [Map](/guides/category-components/components/map)
* [Page Layout](/guides/category-components/components/page_layout)
* [Page Settings](/guides/category-components/components/page_settings)
* [Page Title](/guides/category-components/components/page_title)
* [Social Profile](/guides/category-components/components/social_profile)

## Schema

<CodeGroup>
  ```json Schema theme={null}
  {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "array",
    "title": "Social Media category schema",
    "description": "Validate social media category",
    "examples": [],
    "additionalProperties": false,
    "items": {
      "type": "object",
      "required": [
        "type",
        "data"
      ],
      "additionalProperties": false,
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "page_layout",
            "company_branding",
            "page_title",
            "social_media_profiles",
            "map",
            "custom_script",
            "file",
            "description_box",
            "page_settings"
          ]
        },
        "data": {
          "type": "object"
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "const": "page_layout"
              }
            }
          },
          "then": {
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "components/page_layout.json"
                  },
                  {
                    "properties": {
                      "templateName": {
                        "type": "string",
                        "enum": [
                          "linear",
                          "square",
                          "circle"
                        ]
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "company_branding"
              }
            }
          },
          "then": {
            "properties": {
              "data": {
                "$ref": "components/company_branding.json"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "page_title"
              }
            }
          },
          "then": {
            "properties": {
              "data": {
                "$ref": "components/page_title.json"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "social_media_profiles"
              }
            }
          },
          "then": {
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "profiles"
                ],
                "additionalProperties": false,
                "properties": {
                  "profiles": {
                    "$ref": "components/social_profile.json"
                  }
                }
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "map"
              }
            }
          },
          "then": {
            "properties": {
              "data": {
                "$ref": "components/map.json"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "custom_script"
              }
            }
          },
          "then": {
            "properties": {
              "data": {
                "$ref": "components/custom_script.json"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "file"
              }
            }
          },
          "then": {
            "properties": {
              "data": {
                "$ref": "components/file.json"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "description_box"
              }
            }
          },
          "then": {
            "properties": {
              "data": {
                "$ref": "components/description_box.json"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "page_settings"
              }
            }
          },
          "then": {
            "properties": {
              "data": {
                "$ref": "components/page_settings.json"
              }
            }
          }
        }
      ]
    }
  }
  ```
</CodeGroup>
