Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Use mapnik-reference to validate datasource related parameters in MML #480

Open
nebulon42 opened this issue Jul 9, 2017 · 3 comments
Open

Comments

@nebulon42
Copy link
Collaborator

mapnik-reference defines which parameters can be used for which type of datasource. This information should be used to validate the parameters given for different layers in the MML file. The information could also be used for documentation of Mapnik datasources and their parameters.

@nebulon42 nebulon42 added this to the 1.0 milestone Jul 9, 2017
@nebulon42 nebulon42 changed the title Use mapnik-reference to validate datasourcer related parameters in MML Use mapnik-reference to validate datasource related parameters in MML Jul 9, 2017
@StyXman
Copy link

StyXman commented Jul 28, 2017

Related to this, today I pulled the latest master and I started getting this error:

./bin/carto ~/src/projects/osm/osm-carto/project.mml
Error: Invalid API version. A valid version is e.g. 3.0.0 or 3.0.10

I tried with some values:

$ node
> mr = require('mapnik-reference');
{ version: 
   { '2.0.0': 
     '2.0.1': 
     '2.0.2':
     '2.1.0':
     '2.1.1':
     latest:

With all attemps I get:

Error: Version x.y.z is not supported

The default was removed in b0a03fa. I don't know what else should I do.

@nebulon42
Copy link
Collaborator Author

I cannot reproduce that. Are you sure that this is a vanilla master? You could try rm -rf node_modules and npm install. Maybe that helps.

@StyXman
Copy link

StyXman commented Jul 28, 2017

Yeah, that was it. So it means I updated a dependency. I wish the language would warn about those (but to be fair, Python does not do it either).

@nebulon42 nebulon42 modified the milestones: 1.0, 1.1 Dec 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants