{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "required": [
        "updatePeriodMinutes",
        "notificationSettings"
    ],
    "properties": {
        "updatePeriodMinutes": {
            "type": "integer",
            "minimum": 30,
            "default": 30,
            "enum": [
                30,
                60,
                120,
                180,
                720,
                1440
            ],
            "enumNames": [
                "__MSG_every30Minutes__",
                "__MSG_every1Hour__",
                "__MSG_every2Hours__",
                "__MSG_every3Hours__",
                "__MSG_every12Hours__",
                "__MSG_every24Hours__"
            ]
        },
        "notificationSettings": {
            "type": "object",
            "properties": {
                "alertEnabled": {
                    "type": "boolean",
                    "default": true
                },
                "soundEnabled": {
                    "type": "boolean",
                    "default": true
                },
                "enabledSubscriptionIds": {
                    "type": "object",
                    "additionalProperties": {
                        "type": "boolean"
                    },
                    "properties": {
                        "novelous-feed://narou/messages": {
                            "title": "__MSG_narou__: __MSG_narouMessagesFeed__",
                            "type": "boolean",
                            "default": true
                        },
                        "novelous-feed://narou/comments": {
                            "title": "__MSG_narou__: __MSG_narouCommentsFeed__",
                            "type": "boolean",
                            "default": true
                        },
                        "novelous-feed://narou/blog-comments": {
                            "title": "__MSG_narou__: __MSG_narouBlogCommentsFeed__",
                            "type": "boolean",
                            "default": true
                        },
                        "novelous-feed://narou/reviews": {
                            "title": "__MSG_narou__: __MSG_narouReviewsFeed__",
                            "type": "boolean",
                            "default": true
                        },
                        "novelous-feed://kakuyomu/reviews": {
                            "title": "__MSG_kakuyomu__: __MSG_kakuyomuReviewsFeed__",
                            "type": "boolean",
                            "default": true
                        },
                        "novelous-feed://kakuyomu/news-comments": {
                            "title": "__MSG_kakuyomu__: __MSG_kakuyomuNewsCommentsFeed__",
                            "type": "boolean",
                            "default": true
                        }
                    }
                }
            }
        }
    },
    "uiSchema": {
        "ui:order": [
            "updatePeriodMinutes",
            "notificationSettings"
        ],
        "ui:rootFieldId": "options",
        "updatePeriodMinutes": {
            "ui:widget": "hidden"
        },
        "notificationSettings": {
            "ui:order": [
                "soundEnabled",
                "alertEnabled",
                "enabledSubscriptionIds"
            ]
        }
    }
}