json-schema validation of the input document #327
-
Hi all, I would like to suggest the possibility of specifying json-schema validation of the input document in the OPA server configuration file. Currently I have two policies in separate packages. Both contain checks on the input document: is the necessary input present, is it in the right format and so on. It would be great if I could specify a json-schema file and resolve-directory for each package in the OPA server configuration file. When getting data that requires input the OPA server will first validate the input provided against the configured json-schema file, resolving any references using the configured resolve-directory. If validation fails, the OPA server returns status code 400. If validation is succesful it's business as usual. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @ewout8 👋 This is currently WIP: open-policy-agent/opa#5572 |
Beta Was this translation helpful? Give feedback.
Hi @ewout8 👋
This is currently WIP: open-policy-agent/opa#5572