The schema of a marker is currently indicated by a type property on the data object of a marker.
It would be nice if the type was stored outside of the data object. This would mean that type is no longer a reserved key name that cannot be used for fields, so it would avoid bugs like bug 1939499.
My proposal is:
- Move the
data.type value out of the data object, into a separate marker table type column.
- Optional: Instead of a string, make it an integer which indexes into the global marker schema array.
Edit 2025-01-06: I rewrote this comment to mention the collision issue and removed the Rust API justification
┆Issue is synchronized with this Jira Task