hey guys!
We have Nomad jobs in HCL format, now we want to use REST API to schedule the jobs, and of course REST API will return the error as payload isn't in JSON. Having said that, writing job files in JSON isn't as easy/readable as HCL, and we want to continue using HCL when we write our job. We could use "nomad job run -output my-job.nomad" to convert HCL to JSON as part of our pipeline, but we are wondering what other approach people are using in the community?
Also, are there any specific reasons Nomad didn't support HCL payload over REST/HTTP API? I totally get that REST is supposed to be JSON but who cares, if we have a custom language(HCL) then we could support it over HTTP in Nomad REST API as well (we could call it something else than REST).
~Manish