Entity issue inferring EntityType
Entity
does not contain an EntityType
field. EntityType
can be inferred from the ID string if present, but not otherwise. This could be an issue, e.g for creating JSON. Potential actions:
- Ignore (close this issue)
- Add an
Option<EntityType>
field and leave it to the client code to set it where required - Add an
Option<EntityType>
field and require it in variousinit
methods (breaking change) - Default to "item" where type is required but cannot be inferred I can live with the last one...