Skip to content

JSON schema validation failed with an existing config file. #399

@qiwzhang

Description

@qiwzhang

After pull in changes from #365, my config file doesn't work any more.

Here is the error:

[2017-01-31 10:47:00.258][10775][critical][main] error initializing configuration 'src/envoy/prototype/envoy-esp.conf': JSON object doesn't conform to schema.
Invalid schema: #/properties/filters.
Invalid keyword: minItems.
Invalid document key: #/filters

Process finished with exit code 1

The error message is not helping.

Here is my config file:

{
"admin": {
"access_log_path": "/dev/stdout",
"port": 9001
},
"cluster_manager": {
"clusters": [
{
"connect_timeout_ms": 5000,
"hosts": [
{
"url": "tcp://localhost:8080"
}
],
"lb_type": "round_robin",
"name": "service1",
"type": "strict_dns"
},
{
"connect_timeout_ms": 5000,
"hosts": [
{
"url": "tcp://localhost:8081"
}
],
"lb_type": "round_robin",
"name": "api_manager",
"type": "strict_dns"
}
]
},
"listeners": [
{
"bind_to_port": true,
"filters": [],
"port": 9092,
"use_original_dst": true
},
{
"bind_to_port": false,
"filters": [
{
"config": {
"access_log": [
{
"path": "/dev/stdout"
}
],
"codec_type": "auto",
"filters": [
{
"config": {
"server_config": "src/envoy/prototype/server_config.pb.txt",
"service_config": "src/envoy/prototype/generic_service_config.json"
},
"name": "esp",
"type": "both"
},
{
"config": {},
"name": "router",
"type": "decoder"
}
],
"route_config": {
"virtual_hosts": [
{
"domains": [
"*"
],
"name": "backend",
"routes": [
{
"cluster": "service1",
"prefix": "/",
"timeout_ms": 0
}
]
}
]
},
"stat_prefix": "ingress_http"
},
"name": "http_connection_manager",
"type": "read"
}
],
"port": 9090
}
],
"tracing_enabled": "true"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions