---
title: "ValidationSeverity | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias ValidationSeverity

ValidationSeverity: "error" | "warning"

How badly a style is broken.

-   `error`: the style is invalid and cannot be rendered as written.
-   `warning`: the style renders, but almost certainly not as its author intended -- for example a filter that mixes deprecated syntax into an expression tree. Consumers should surface these (a style editor lists them; a map logs them) but must keep rendering.
