Schema block

This documentation is for a previous version of Cerbos. Choose 0.37.0 from the version picker at the top right or navigate to for the latest version.

See Schemas for more information about schemas.


enforcement can be set to one of the following three values:

  • none: Do not validate requests using schemas

  • warn: Validate requests and log warnings when there are validation failures

  • reject: Deny the request if it fails validation

  enforcement: reject