Very very long time ago I looked for a Cerbos feat...
# help
y
Very very long time ago I looked for a Cerbos feature that convert YAML schemas to TypeScript files so the inputs can be statically checked to have all data needed for Cerbos to be able to make a proper decision per schemas. I remember then this wasn't implemented, but is this still the case now? It has probably been years since I looked/asked
Also as of now is it possible to configure Cerbos as such it errors when data is missing (instead of just denying the permission)?
a
Hey they - yes you can now define a JSONSchema for your principal and resource attributes and the PDP can be configured to validate against that when a request comes in either warn or reject it. https://docs.cerbos.dev/cerbos/latest/policies/schemas https://docs.cerbos.dev/cerbos/latest/configuration/schema There is an open source project from a community member for type generation https://www.npmjs.com/package/@estino/cerbos-ts-codegen
🙌 1
y
wow these are very useful, thank you!