ideditor / schema-builder

🏗🏷 Create tagging schemas for iD
ISC License
12 stars 16 forks source link

Readme: Clarify referencing for `name` #149

Open tordans opened 2 months ago

tordans commented 2 months ago

I think this wording should be like in this PR, right?

However, I am not sure if this whole part is actually true. does adding a reference for the name really mean that also terms and aliases are copied? Is there a way around this, like adding terms (or an empty array) in the present itself?

Or could it be that one has to reference the preset for each of those keys separately?

A preset can optionally reference the label of another by using that preset's name contained in brackets, like {preset}. In which case the presets's terms and aliases are also automatically sourced from that other field. This is for example useful for regional presets which should get the same labels as the preset they are based on.

tordans commented 2 months ago

There is another question here on how to best explain the underscore case for all those places where we explain referencing of keys, which is at least 3 places in the readme. See https://github.com/ideditor/schema-builder/pull/148 for why…