cli icon indicating copy to clipboard operation
cli copied to clipboard

`checkOplSyntax` command for CI/CD and easy DX

Open zepatrik opened this issue 11 months ago • 0 comments

Preflight checklist

Ory Network Project

No response

Describe your problem

I'd like to be able to perform this check in our CI/CD pipelines.

Describe your ideal solution

ory check opl --file ./my-permissions.ts or similar command.

Workarounds or alternatives

Use curl directly:

curl --request POST \
  --url "https://$ORY_SLUG.projects.oryapis.com/opl/syntax/check"
  --header "authorization: Bearer $ORY_API_KEY"
  --header 'content-type: text/plain' \
  --data-binary '@./my-permissions.ts'

Version

v1

Additional Context

No response

zepatrik avatar Feb 10 '25 10:02 zepatrik