Skip to content

Does OPA support JSON patch move operation? #462

Closed Answered by charlieegan3
thilak009 asked this question in OPA and Rego
Discussion options

You must be logged in to vote

Hi @thilak009, you're right in that there is an inconsistency here.

This example in playground seems to works as expected

The built in function implementation is different from the code which handles API requests for the Data patch operation.

any reason for this?

The superficial reason is that these are all that's exposed by the underlying data storage interface, of which there are two in-tree implementations (inmem and disk). Changes to this interface would need to be carefully considered since there are likely 3rd party implementations that would break if we added required support for more operations.

What are you trying to do? There might be a better way to achieve it. Have you con…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@thilak009
Comment options

@charlieegan3
Comment options

Answer selected by thilak009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants