Skip to content

Commit 1bbd38a

Browse files
authored
docs: Add link to inline schema annotations (#7496)
Signed-off-by: kapil.madan <[email protected]>
1 parent 8fe5571 commit 1bbd38a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: docs/content/policy-language.md

+2
Original file line numberDiff line numberDiff line change
@@ -2992,6 +2992,8 @@ for _, link := range chain {
29922992

29932993
You can provide one or more input schema files and/or data schema files to `opa eval` to improve static type checking and get more precise error reports as you develop Rego code.
29942994

2995+
Schemas can be provided to OPA in two main ways: by supplying external JSON Schema files using the `-s` command-line flag (explained below), or by embedding schema definitions directly within your Rego files using [schema annotations](#schema-annotations) (detailed further down in this document). Both methods help improve static type checking.
2996+
29952997
The `-s` flag can be used to upload schemas for input and data documents in JSON Schema format. You can either load a single JSON schema file for the input document or directory of schema files.
29962998

29972999
```

0 commit comments

Comments
 (0)