kalisio / krawler

A minimalist (geospatial) ETL
https://kalisio.github.io/krawler/
MIT License
54 stars 13 forks source link

String conversion does not work in unit mapping for transformJson hook #251

Closed claustres closed 1 year ago

claustres commented 1 year ago

Steps to reproduce

Use the following option with an integer

unitMapping: {
  icao: { asString: true }
}

Expected behavior

The integer should be converted as string.

Actual behavior

The property does not appear in output.

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working): 2.4

NodeJS version: 16

Operating System: Windows