Skip to content

checkOplSyntax command for CI/CD and easy DX #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
5 tasks done
zepatrik opened this issue Feb 10, 2025 · 0 comments
Open
5 tasks done

checkOplSyntax command for CI/CD and easy DX #402

zepatrik opened this issue Feb 10, 2025 · 0 comments
Labels
feat New feature or request.

Comments

@zepatrik
Copy link
Member

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 zepatrik added the feat New feature or request. label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant