https://github.com/anderseknert/opa-json-schema-lab
Experiments with JSON schema and OPA
https://github.com/anderseknert/opa-json-schema-lab
Last synced: 10 months ago
JSON representation
Experiments with JSON schema and OPA
- Host: GitHub
- URL: https://github.com/anderseknert/opa-json-schema-lab
- Owner: anderseknert
- License: apache-2.0
- Created: 2021-04-28T07:57:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-28T08:33:00.000Z (over 4 years ago)
- Last Synced: 2025-03-14T20:50:41.766Z (10 months ago)
- Language: Open Policy Agent
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opa-json-schema-lab
Experiments with JSON schema and OPA.
## Currently testing
```shell
echo '{"username":"anders"}' | opa eval 'data.rego.allow' --format pretty --data policy/policy.rego --schema schema --stdin-input
```
Given how "roles" should be a required attribute, why is this not a violation?