Validate style
validate_styleValidates a MapLibre style against the official specification, returning a list of issues with property paths. Run it after editing a style to catch errors before using the style.
Instructions
Checks a MapLibre style against the MapLibre Style Specification and lists every problem, each with the path to the property it is about. Run it after editing a style. Pass the style as an object, a URL or a file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL of a style JSON document. | |
| path | No | Path to a style JSON file, relative to the directory the server runs in. | |
| style | No | The style as a JSON object. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| problems | Yes |