Convert a nested struct into a nested map

This is extremely frustrating. I have a struct with struct fields and other varied fields like regexes and maps and lists and tuples.

I have tried jason and nestru. Both render things differently across elixir version.

Do i really need to handcraft the struct to json/string representation?

for context working on

https://github.com/testcontainers/testcontainers-elixir/pull/125

And its extremely hard to get tests to pass in CICD. Everything can be green locally on my newer elixir version 1.17 .. but in github actions tests fails beause struct hash is different

bah…

wierd thing is that hash tests passes on older elixir versions … i think its at least map field ordering issue.

I mean how hard can it be

hmmmm … otp 26 …

hmmmmm

ref Blog Post: Taking Control of Map Sort Order in Elixir