Skip to content

Proposed tweak to marker JSON format: Move type outside of data, into its own column #4494

Description

@mstange

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:

  1. Move the data.type value out of the data object, into a separate marker table type column.
  2. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Jira

None yet

Severity

None yet

Estimate

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions