ValidationWarning
Defined in: packages/core/src/parser/validation-utils.ts:40
A non-fatal validation finding surfaced alongside errors.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
column? | number | 1-based source column, when it can be resolved | packages/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? | number | 1-based source line, when it can be resolved | packages/core/src/parser/validation-utils.ts:43 |
message | string | Human-readable description | packages/core/src/parser/validation-utils.ts:42 |
onPage? | boolean | Also 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 |
path | string | Dotted 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? | string | Nearest valid alternative, when one is close enough | packages/core/src/parser/validation-utils.ts:45 |