opa run --server data.json
error: load error: 1 error occurred during loading: data.json: bad document type
While I immediately knew what was wrong, the "bad document type" error isn't helpful for anyone not familiar with what's expected for a data document (i.e. an object). We should update the error message to explain what's expected.
data.json
While I immediately knew what was wrong, the "bad document type" error isn't helpful for anyone not familiar with what's expected for a data document (i.e. an object). We should update the error message to explain what's expected.