{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "oneOf": [
        {
            "type": [
                "string",
                "null"
            ],
            "format": "non-blank"
        },
        {
            "description": "A piece of legislation. NB we expect to add additional properties to this over time",
            "type": "object",
            "properties": {
                "name": {
                    "type": "string",
                    "format": "non-blank",
                    "description": "name of the the legislation"
                },
                "url": {
                    "type": "string",
                    "format": "non-blank"
                }
            }
        }
    ]
}