check
Check that events have all required properties based on their type property. The rules are defined in the [check] section of config.toml.
Usage
rscalendar check [OPTIONS]
Options
| Option | Required | Description |
|---|---|---|
--calendar-name <NAME> | No | Calendar name (default: from config) |
How It Works
- Reads the
[check]section from config, which maps eachtypevalue to a list of required property keys - For each event, looks up its
typeproperty - Verifies that all required properties for that type are present
Reports
- Events missing a
typeproperty - Events with a
typevalue not defined in[check] - Events missing required properties for their type
Config
[check]
teaching = ["client", "company", "course"]
working = ["client", "company"]
call = ["client", "company"]
meeting = ["client", "company"]
This means: if an event has type=teaching, it must also have client, company, and course properties set.
Example
$ rscalendar check
Linux Workshop (2026-04-01T09:00:00+03:00):
- missing required property 'course' (required for type 'teaching')
Team Sync (2026-04-02T14:00:00+03:00):
- missing 'type' property
2 issue(s) in 2 event(s) out of 10.