{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Note",
    "description": "Note with optional comments",
    "type": "object",
    "properties": {
        "author": {
            "type": "string"
        },
        "title": {
            "type": "string"
        },
        "content": {
            "type": "string"
        }
    },
    "patternProperties": {
        "^comment[1-9]$": {
            "type": "string"
        }
    },
    "additionalProperties": false,
    "required": [
        "author",
        "title",
        "content"
    ]
}