loader: change extension handler type (#6015)
This 1. changes the extension.Handler type to make it more flexible 2. simplifies the extension usage -- it used to be called in many places, but it could all be handled through util.Unmarshal and util.UnmarshalJSON instead We've previously marked it as "EXPERIMENTAL", so we should have enough leeway to change this now. NOTE: As a consequence of (2.), we're no longer accepting trailing data for json files loaded with OPA. I believe it wasn't intentional to ignore bad data before -- now, it'll be an error. Signed-off-by: Stephan Renatus <stephan@styra.com>
S
Stephan Renatus committed
cca81970d1ab224548b1fa353ab7f5935a364527
Parent: 6abcc29
Committed by GitHub <noreply@github.com>
on 6/16/2023, 7:37:33 AM