From f6496aa59efc1019e497aa284b3ad790b8d93965 Mon Sep 17 00:00:00 2001 From: Ethan Date: Thu, 12 Sep 2019 23:40:45 -0700 Subject: [PATCH] fix nesting and structure of JSON example in section Distinguishing Among Multiple Values --- jsonschema-core.xml | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/jsonschema-core.xml b/jsonschema-core.xml index 4c0f3ec9..4c18d00a 100644 --- a/jsonschema-core.xml +++ b/jsonschema-core.xml @@ -891,29 +891,28 @@ { "title": "Feature list", "type": "array", - "items": [ - { - "title": "Feature A", - "properties": { - "enabled": { - "$ref": "#/$defs/enabledToggle", - "default": true - } + "items": [ + { + "title": "Feature A", + "properties": { + "enabled": { + "$ref": "#/$defs/enabledToggle", + "default": true } - }, - { - "title": "Feature B", - "properties": { - "enabled": { - "description": "If set to null, Feature B - inherits the enabled - value from Feature A", - "$ref": "#/$defs/enabledToggle" - } + } + }, + { + "title": "Feature B", + "properties": { + "enabled": { + "description": "If set to null, Feature B + inherits the enabled + value from Feature A", + "$ref": "#/$defs/enabledToggle" } } - ] - }, + } + ], "$defs": { "enabledToggle": { "title": "Enabled",