Validate policy configuration
Lint and validate policy JSON configuration files
The easiest way to check your policy file validity is via the policy linter tool in the Guard platform. This editor provides basic linting for your policy. It will check for common errors and provide suggestions for improvement.
The tool is run locally in the browser, so any policies or JSON entered in it are not saved anywhere. Note this also means that the contents are lost if you close the page.
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects a multipart form.
Response
Policy validation results
passed
Whether validation passed
errors
List of validation errors and warnings