From 005df89787e463f50e341f5106633f385ddd7588 Mon Sep 17 00:00:00 2001 From: Kieranties Date: Wed, 6 May 2020 00:11:04 +0100 Subject: [PATCH] Validate basic usage --- .simpleversion.json | 1 + src/SimpleVersion.Docs/SchemaGenerator.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/.simpleversion.json b/.simpleversion.json index c8d02a0..d607e26 100644 --- a/.simpleversion.json +++ b/.simpleversion.json @@ -1,4 +1,5 @@ { + "$schema": "http://localhost:8080/schema/latest.json", "version": "0.4.0", "branches": { "release": [".+"], diff --git a/src/SimpleVersion.Docs/SchemaGenerator.cs b/src/SimpleVersion.Docs/SchemaGenerator.cs index c2da642..289a24c 100644 --- a/src/SimpleVersion.Docs/SchemaGenerator.cs +++ b/src/SimpleVersion.Docs/SchemaGenerator.cs @@ -23,6 +23,7 @@ internal static void Generate(Type type, string path) { var settings = new JsonSchemaGeneratorSettings { + FlattenInheritanceHierarchy = true, SerializerSettings = new JsonSerializerSettings { ContractResolver = new DefaultContractResolver