webgme / webgme-taxonomy

A design studio for creating taxonomies which can then be used to tag various resources.
MIT License
0 stars 1 forks source link

Plugin: Checking name collisions on Taxonomy object types #445

Open yogeshVU opened 1 year ago

yogeshVU commented 1 year ago

It will be good to check if there are any name collisions in the taxonomy especially for the json objects. Code gen tools like Pydantic creates a class with an object name and if there is a name collision, it just appends an incremental integer to the class name. Eg. Participant,,, Participant1, Partcipant2..

brollb commented 1 year ago

Just to be clear, this is not just for sibling nodes in the taxonomy, right? In other words, if two nodes have the same name but have unique paths in the taxonomy tree, is that a problem?

yogeshVU commented 1 year ago

As far as my understanding goes, pydantic creates classes globally. As such this would mean unique names across the taxonomy for the objects, ignoring the unique paths if any.