elsholz / metroplanner

Tool to create maps of metro lines
GNU General Public License v3.0
1 stars 1 forks source link

Make Data JSON Serializable #1

Closed elsholz closed 6 months ago

elsholz commented 1 year ago

The source data for metro maps is currently Javascript, as this allows for more flexibilty when building metro maps from code. In order to store the data in a database and to be able to load third party metro map data without executing arbitrary Javascript, the data must be JSON serializable. The serialized data must be in a format that allows manual editing and is as simple as possible, while keeping a high information density.

elsholz commented 6 months ago

Data is now json serializable, backend implementation currently uses JSON schemas to validate data. Will use pydantic for parsing and serialization in backend in the future.