{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Portable user preferences",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "appLocale": { "type": ["string", "null"] },
    "appTheme": { "enum": ["light", "dark", "system"] },
    "hapticFeedbackEnabled": { "type": "boolean" },
    "reviewAheadLimit": { "type": "integer", "minimum": 0 },
    "nextDayStartsAtMinutes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 360,
      "description": "Minutes from midnight, 00:00–06:00. 270 is 04:30."
    }
  }
}
