Skip to content

checkOplSyntax command for CI/CD and easy DX #402

@zepatrik

Description

@zepatrik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions