Skip to content

ValidationWarning

Defined in: packages/core/src/parser/validation-utils.ts:40

A non-fatal validation finding surfaced alongside errors.

PropertyTypeDescriptionDefined in
column?number1-based source column, when it can be resolvedpackages/core/src/parser/validation-utils.ts:44
kind?"deprecation" | "unimplemented" | "note"Marks a warning about a field that is accepted today but scheduled for removal. Remarks A distinct class because it is exempt from strict promotion: mlym validate turns warnings into errors under CI, and without this exemption a newly-deprecated field would hard-fail every existing user’s build the moment they upgrade. --strict-deprecations opts back in. Absent on unknown-key and expression warnings, which promote as before. note: not a problem at all — how a valid value is read (a basemap string naming a .pmtiles file is the Protomaps shorthand). Never promoted.packages/core/src/parser/validation-utils.ts:61
line?number1-based source line, when it can be resolvedpackages/core/src/parser/validation-utils.ts:43
messagestringHuman-readable descriptionpackages/core/src/parser/validation-utils.ts:42
onPage?booleanAlso shown on the page, in the map’s “part of this map didn’t load” notice, not only the console: the document is valid but part of it silently does nothing (a root key nested under config:, a chapter naming a layer the document doesn’t have). ml-aot.48 / ml-aot.51.packages/core/src/parser/validation-utils.ts:68
pathstringDotted JSON path to the offending value (e.g. pages.0.blocks.0.layers.0.paint.circle-radis)packages/core/src/parser/validation-utils.ts:41
suggestion?stringNearest valid alternative, when one is close enoughpackages/core/src/parser/validation-utils.ts:45