Your issue is that objects are somehow being created with ids in the first place. It’s not related to the serializer (or the fabricator). Could you please share:
- The environment of your discourse, i.e. how you’re hosting, and what version of Discourse you’re using.
- Any other plugins you’re using.