github-as-code
github-as-code copied to clipboard
Add JSON validation workflows
Errors from jsonencode in terraform are quite enigmatic. It'd be nice to have an additional JSON validation step which could point to a specific line where there is something wrong with the JSON formatting.
The alternative is to try to push changes to terraform which improve jsonencode error messages.
Alternatively, if we have a processing step, we could take relaxed JSON (trailing commas, comments) and output compativel JSON for terraform.