makeomatic/mservice

View on GitHub
packages/plugin-elasticsearch/schemas/elasticsearch.json

Summary

Maintainability
Test Coverage
{
    "$id": "elasticsearch",
    "type": "object",
    "properties": {
        "host": {
            "type": "string",
            "minLength": 1
        },
        "hosts": {
            "type": "array",
            "minItems": 1,
            "items": {
                "oneOf": [
                    {
                        "type": "string",
                        "minLength": 1
                    },
                    {
                        "type": "object",
                        "properties": {
                            "protocol": {
                                "type": "string",
                                "enum": [
                                    "http",
                                    "https"
                                ]
                            },
                            "host": {
                                "type": "string",
                                "minLength": 1
                            },
                            "port": {
                                "type": "integer"
                            }
                        }
                    }
                ]
            }
        },
        "ssl": {
          "type": "object",
          "properties": {
            "pfx": {
                "oneOf": [
                    {
                        "type": "string",
                        "minLength": 1
                    },
                    {
                        "type": "array",
                        "minItems": 1,
                        "items": {
                            "type": "string",
                            "minLength": 1
                        }
                    }
                ]
            },
            "key": {
                "type": "string",
                "minLength": 1
            },
            "passphrase": {
                "type": "string",
                "minLength": 1
            },
            "cert": {
                "type": "string",
                "minLength": 1
            },
            "ca": {
                "oneOf": [
                    {
                        "type": "string",
                        "minLength": 1
                    },
                    {
                        "type": "array",
                        "minItems": 1,
                        "items": {
                            "type": "string",
                            "minLength": 1
                        }
                    }
                ]
            },
            "ciphers": {
                "type": "string",
                "minLength": 1
            },
            "rejectUnauthorized": {
                "type": "boolean",
                "default": "false"
            },
            "secureProtocol": {
                "type": "string",
                "minLength": 1
            }
          }
        },
        "apiVersion": {
            "type": "string"
        },
        "maxRetires": {
            "type": "integer"
        },
        "requestTimeout": {
            "type": "integer"
        },
        "deadTimeout": {
            "type": "integer"
        },
        "pingTimeout": {
            "type": "integer"
        },
        "log": {
            "type": "object",
            "required": [
                "type"
            ],
            "properties": {
                "type": {
                    "type": "string",
                    "enum": [
                        "stdio",
                        "file",
                        "tracer",
                        "console",
                        "service"
                    ],
                    "default": "console"
                },
                "level": {
                    "type": "string",
                    "enum": [
                        "error",
                        "warning",
                        "info",
                        "trace"
                    ],
                    "default": "warning"
                }
            }
        }
    }
}