makeomatic/mservice

View on GitHub
packages/plugin-redis-sentinel/schemas/redisSentinel.json

Summary

Maintainability
Test Coverage
{
    "$id": "redisSentinel",
    "type": "object",
    "required": [
        "sentinels",
        "name"
    ],
    "properties": {
        "name": {
            "type": "string",
            "minLength": 1
        },
        "sentinels": {
            "type": "array",
            "minItems": 1,
            "items": {
                "type": "object",
                "required": [
                    "host",
                    "port"
                ],
                "properties": {
                    "host": {
                        "type": "string",
                        "anyOf": [
                            {
                                "format": "hostname"
                            },
                            {
                                "format": "ipv4"
                            },
                            {
                                "format": "ipv6"
                            }
                        ]
                    },
                    "port": {
                        "anyOf": [
                            {
                                "type": "integer"
                            },
                            {
                                "type": "string"
                            }
                        ]
                    }
                }
            }
        },
        "options": {
            "type": "object",
            "properties": {
                "keyPrefix": {
                    "type": "string"
                },
                "dropBufferSupport": {
                    "type": "boolean"
                }
            }
        }
    }
}