Schema
The Pydantic contract for LOLPaths rules.
The canonical structural schema is implemented as Pydantic models in:
lolpaths/validator.pyIt validates:
- Required fields
- Rule ID format
- Categories
- Sensitivity values
- Path kinds
- Platform arrays
- Metadata shape
- Content matcher structure
The validator also checks duplicate rule IDs and malformed content regexes.
Rule IDs use lowercase dot-separated identifiers:
cloud.aws.credentials
ssh.private-keys
kubernetes.service-account-token