{
    "$schema": "http://json-schema.org/schema#",
    "type": "object",
    "properties": {
        "type": {
            "type": "string",
            "description": "The service type (should always conform to the regex '.*::shared-db')",
            "pattern": "(.*)::shared-db",
            "errorMessage": "The 'type' field must conform to the regex '.*::shared-db'"
        },
        "cluster_id": {
            "type": "string",
            "errorMessage": "The 'cluster_id' field must be a string"
        },
        "schema_migrations_dir": {
            "type": "string",
            "errorMessage": "The 'schema_migrations_dir' field must be a string"
        },
        "create_ddl_user": {
            "type": "boolean",
            "errorMessage": "The 'create_ddl_user' field must be a boolean"
        }
    },
    "required": [
        "type"
    ],
    "additionalProperties": false,
    "errorMessage": {
        "additionalProperties": "Invalid/unknown property specified",
        "required": {
            "type": "The 'type' field is required",
            "schema_migrations_dir": "The 'schema_migrations_dir' field is required"
        }
    }
}
