What is the underlying problem you're trying to solve?
Our SCIM server returns application/scim+json as a Content-Type header. We need to enable force_json_decode to get the raw_body parsed into body.
Describe the ideal solution
It would be nice if opa would understand that application/variant+json is just a variant of application/json for any variant of json so it would not be necessary to add force_json_decode to the request body.
Describe a "Good Enough" solution
users_request := {
"url": "https://scimserver/Users",
"method": "GET",
"headers": {
"x-api-key": "secret",
"accept": "application/scim+json"
}
}
... would return a valid decoded body in the result.
What is the underlying problem you're trying to solve?
Our SCIM server returns
application/scim+jsonas aContent-Typeheader. We need to enableforce_json_decodeto get theraw_bodyparsed intobody.Describe the ideal solution
It would be nice if opa would understand that
application/variant+jsonis just a variant ofapplication/jsonfor anyvariantof json so it would not be necessary to addforce_json_decodeto the request body.Describe a "Good Enough" solution
... would return a valid decoded body in the result.