AE
Ash Elixir•3y ago
n0gg1n

Is it possible to auto generate an Ash Resource from a JSON Schema?

Hi, I took a deep dive into the FHIR specification and I thought this is a great fit for the Ash Framework. The core specification consists of > 100 resources and it's a little bit laborious to handcode everything. Is there a way to parse a JSON Schema and automatically create the Ash resources?
2 Replies
barnabasj
barnabasj•3y ago
I don't think there is much there to help you do this. But I don't see anything stopping you, if the schema includes the attributes/types it should be pretty straight forward to go over it and write the resource definition to a file.
n0gg1n
n0gg1nOP•3y ago
Ah ok I see. I will try that out on the WE. Thank you 🙂

Did you find this page helpful?