Reputation: 6642
Given the following JSON, how can I use JSON Schema to validate that each string in nodes[].targets
matches the name of a listed node?
{
"nodes": [
{"name": "app_server"},
{"name": "web_server1"}
{"name": "web_server2"}
{
"name": "load_balancer",
"targets": ["web_server1", "web_server2"]
}
]
}
Upvotes: 2
Views: 541