[Tile-serving] [osm2pgsql-dev/osm2pgsql] Create strict mode for interpretation of Lua config (Issue #2381)
Jochen Topf
notifications at github.com
Mon Aug 18 15:06:44 UTC 2025
joto created an issue (osm2pgsql-dev/osm2pgsql#2381)
osm2pgsql doesn't check for settings it doesn't know about so that we can introduce them later without old versions of osm2pgsql breaking. But maybe we should at least check and print a warning? And then have a mechanism that turns those warnings into errors for tests?
This affects all sorts of configurations where we use Lua tables with config settings. In each of these cases we would need to keep a list of allowed "keys" and check all "values".
Options:
* Have a command line option "--strict" or similar
* Have an environment variable "OSM2PGSQL_STRICT" or similar
* Have an option `osm2pgsql.strict_mode=true` or similar in the Lua config file
Do we expect users to use this strict mode also or is this just for tests?
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/issues/2381
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/issues/2381 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250818/8b4b5042/attachment.htm>
More information about the Tile-serving
mailing list