Adam Lancaster
Adam Lancaster
Just to chime in I've handled this scenario at work by having our livebooks connect to a mix runtime and have that mix app read in secrets at start up...
That's a good idea, you could then put a `Mix.install` for that library. I will experiment if I get some time
I would suggest no config and have the config be runtime arguments or options to the given function.
Strange I couldn't get it to work at all. If I don't provide config goth seems to just error on start up.
Is there a workaround to be able to include this as this library seems abandoned...
This has kind of been done with the private EctoMorph.map function but to make it work with validate_nested_changeset and with validate_required we had to do shenanigans when the nested changeset...
Oh that's a good point, I might give this a go if I can find a decent ruby version to port.
This is a great recent talk in that space too: https://youtu.be/8Ab3ArE8W3s
You can do it like this: ```elixir xml = """ example 1 example 1 """ extract = SweetXml.xpath(xml, ~x"/features") ['' | xml_snippet] = :xmerl.export([extract], :xmerl_xml) Enum.join(xml_snippet, "") |> IO.puts ```...
See also: generate JSON schema from data schemas ?