{
    "id": "http://jslicense.org/schema.json#",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "jslicense",
    "description": "schema for open-source license templates",
    "type": "array",
    "minItems": 1,
    "items": {
        "type": "array",
        "minItems": 0,
        "items": {
            "description": "arrays describing a line of text",
            "oneOf": [
                {
                    "description": "non-empty strings",
                    "type": "string",
                    "pattern": ".+"
                },
                {
                    "description": "field",
                    "type": "object",
                    "properties": {
                        "default": {
                            "type": "string"
                        },
                        "field": {
                            "enum": [
                                "year",
                                "organization",
                                "owners"
                            ]
                        },
                        "transform": {
                            "enum": [
                                "upper"
                            ]
                        }
                    },
                    "required": [
                        "field"
                    ],
                    "additionalProperties": false
                }
            ]
        }
    }
}