shabados / database

A digital representation of Sikh Bani and other Panthic texts with a public logbook of sangat-sourced corrections.
https://docs.shabados.com/database
GNU General Public License v3.0
66 stars 25 forks source link

Encapsulate concept of default source by moving to array responses of `content` and `translations` #1879

Open Harjot1Singh opened 2 years ago

Harjot1Singh commented 2 years ago

Summary

As there are multiple sources of both content and translations, an end user may not know which source to use for content and translations, per composition. A clean way of modelling around this is to represent content and translation values as arrays, ordered by our recommendation for the line.

Approach

Change the JSON representation to use arrays, rather than objects to represent the value of content/gurbani and translations.