This message was deleted.
# help
s
This message was deleted.
t
Hi @Mahi Vasi you can write stub JSON files to the mappings directory without IDs and although they get populated in memory when read, they’re not automatically written back to the filesystem, so this may be a solution. If you needed to customise this behaviour at the moment you’d need to write a custom
MappingsStore
implementation with your own serialisation logic.
m
Thanks Tom, After looking into code am thinking i can achieve this by customizing objectmapper with a mixin. I see i can tap into Json.getObjectMapper and configure a mixin for stubmapping. Are there any callbacks or listener support available at wiremock startup to fine tune objectmapper. Let me know your thoughts. Appreciate you looking into this.
t
There aren’t unfortunately. The
Json
class is a bit inflexible in that sense. You’re probably better off creating your own
ObjectMapper
and the using that from within your own
MappingsStore