From 67091948137b7271ac1d3a67eaaf5076d24aa00c Mon Sep 17 00:00:00 2001 From: Sven Fink Date: Tue, 3 Mar 2020 14:21:54 +0100 Subject: [PATCH] Better format of schema in readme.cpp --- app/readme.cpp | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/app/readme.cpp b/app/readme.cpp index d0fcadc..45f4d35 100644 --- a/app/readme.cpp +++ b/app/readme.cpp @@ -12,23 +12,26 @@ static json person_schema = R"( "$schema": "http://json-schema.org/draft-07/schema#", "title": "A person", "properties": { - "name": { - "description": "Name", - "type": "string" - }, - "age": { - "description": "Age of the person", - "type": "number", - "minimum": 2, - "maximum": 200 - }, - "address":{ - "type": "object", - "properties":{ - "street":{ - "type": "string", - "default": "Abbey Road" - }}}}, + "name": { + "description": "Name", + "type": "string" + }, + "age": { + "description": "Age of the person", + "type": "number", + "minimum": 2, + "maximum": 200 + }, + "address":{ + "type": "object", + "properties":{ + "street":{ + "type": "string", + "default": "Abbey Road" + } + } + } + }, "required": [ "name", "age"