github-as-code icon indicating copy to clipboard operation
github-as-code copied to clipboard

Add JSON validation workflows

Open galargh opened this issue 3 years ago • 2 comments

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.

galargh avatar May 11 '22 09:05 galargh

The alternative is to try to push changes to terraform which improve jsonencode error messages.

galargh avatar May 11 '22 09:05 galargh

Alternatively, if we have a processing step, we could take relaxed JSON (trailing commas, comments) and output compativel JSON for terraform.

BigLep avatar May 11 '22 16:05 BigLep