OxL Reference

error unknown-policy-target

error Standard: [§13.4]

What it means#

A policy S { allow rpcName … } block may only name rpcs of the service S. Policies are checked for names only and not enforced yet.

Example#

oxl✓ checked in CI
service S { rpc a() -> i32 }
impl S { rpc a() { 1 } }
policy S { allow nope if true }   // <- unknown-policy-target
error
unknown-policy-target

How to fix#

Use the name of an rpc of the service.

See also#

OxL 1.0.0-beta · Documentation version 1.0.0-beta© OxwaldLink · generated from the Standard, the std sources and the guides