Description
Supporting JSON schema matching in Swift OPA with json.match_schema would allow much richer input validation options for folks using it to evaluate their Rego policies.
We should add this and related builtins in the future.
Also, since we've upgraded to Swift 6.1, which allows us to start using package traits, we can potentially use external jsonschema libraries, and just gate the builtins behind an appropriate trait.
Description
Supporting JSON schema matching in Swift OPA with
json.match_schemawould allow much richer input validation options for folks using it to evaluate their Rego policies.We should add this and related builtins in the future.
Also, since we've upgraded to Swift 6.1, which allows us to start using package traits, we can potentially use external jsonschema libraries, and just gate the builtins behind an appropriate trait.