From 10daf40b5681df2f816c39a3c0ac5f8c003fc274 Mon Sep 17 00:00:00 2001 From: jos Date: Wed, 12 Jun 2019 15:43:16 +0200 Subject: [PATCH] Use JSON schema title as name for the root object if defined (see #635) --- HISTORY.md | 1 + examples/07_json_schema_validation.html | 3 ++- src/js/Node.js | 17 ++++++++++++----- test/test_schema.html | 2 +- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index a02898b..f7b43ed 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -8,6 +8,7 @@ https://github.com/josdejong/jsoneditor - Breaking change: upgraded dependency `ajv@6.10.0`, supporting JSON schema draft-07 alongside draft-06 and draft-04. - Upgraded dependency `vanilla-picker@2.8.1`. +- Use JSON schema title as name for the root object if defined (see #635). ## 2019-06-08, version 5.34.0 diff --git a/examples/07_json_schema_validation.html b/examples/07_json_schema_validation.html index 6c6dcaa..f0cb1a3 100644 --- a/examples/07_json_schema_validation.html +++ b/examples/07_json_schema_validation.html @@ -35,7 +35,8 @@