mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
server: Add missing handling for explain=fails to the REST API.
Signed-off-by: Aaron Campbell <62760750+acamatcisco@users.noreply.github.com>
This commit is contained in:
committed by
Ashutosh Narkar
parent
959f9e54b4
commit
d48fdd99ac
@@ -2737,6 +2737,8 @@ func getExplain(p []string, zero types.ExplainModeV1) types.ExplainModeV1 {
|
||||
switch x {
|
||||
case string(types.ExplainNotesV1):
|
||||
return types.ExplainNotesV1
|
||||
case string(types.ExplainFailsV1):
|
||||
return types.ExplainFailsV1
|
||||
case string(types.ExplainFullV1):
|
||||
return types.ExplainFullV1
|
||||
case string(types.ExplainDebugV1):
|
||||
|
||||
Reference in New Issue
Block a user