{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "testField": {
            "title": "Module field name",
            "description": "A single module field name",
            "type": "string"
        }
    },
    "title": "Sample schema",
    "description": "Sample schema definition",
    "type": "object",
    "properties": {
        "foo": {
            "title": "Foo value",
            "description": "Some value of foo",
            "type": "string"
        },
        "bars": {
            "title": "Module many-to-many relationships",
            "description": "Configuration of many-to-many relationships",
            "type": "array",
            "items": {
                "allOf": [
                    {
                        "$ref": "#/definitions/testField"
                    }
                ]
            }
        }
    },
    "additionalProperties": false,
    "required": [
        "foo"
    ]
}