Closed jweir closed 1 year ago
curious, why was this closed? I'd like to be able to namespace ruby files using the JSONCompiler template. I was thinking of allowing the template to be defined externally and passed to the compiler, but I probably wasn't holistic in my approach to other schema formats. Anyway, it seems useful to be able to declare the ns, thanks!
I closed it because it is a work in progress that has not been thought through or used enough for me to feel confident it is a good solution.
We have come across two issues with Shale: prepending namespaces (as with this PR) and setting the correct Shale type from real world XSD files (which do not use the ns1
namespacing).
https://github.com/kgiszczak/shale/commit/b7d8d8506945dbe93822bbfae2e1673f968c32ef
We are currently using the patched version of Shale with some production code.
Once we are done with our deadline, I am going to circle back around and clean this up and present a PR.
We are really happy to have Shale, we have been using a JAX parser in JRuby to convert XSD's to Ruby mapper objects – Shale is much nicer.
@jweir I'm really happy you like Shale and even more you use it in production. Waiting for the PR :)
Problem