From 68a86652f0b6e8206a946482f562434898ef247f Mon Sep 17 00:00:00 2001 From: Ben C Date: Mon, 23 May 2022 08:49:15 -0400 Subject: [PATCH] AllowReferencesWithProperties --- SchemaExporter/SchemaExporter.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SchemaExporter/SchemaExporter.cs b/SchemaExporter/SchemaExporter.cs index 1e5a2618..19388b9d 100644 --- a/SchemaExporter/SchemaExporter.cs +++ b/SchemaExporter/SchemaExporter.cs @@ -19,7 +19,8 @@ public static class SchemaExporter { IgnoreObsoleteProperties = true, DefaultReferenceTypeNullHandling = ReferenceTypeNullHandling.NotNull, - FlattenInheritanceHierarchy = true + FlattenInheritanceHierarchy = true, + AllowReferencesWithProperties = true }; Console.WriteLine("Outputting Body Schema"); var bodySchema = new Schema("Celestial Body Schema", $"{folderName}/body_schema", settings); @@ -73,7 +74,7 @@ public static class SchemaExporter { var schema = JsonSchema.FromType(_generatorSettings); schema.Title = _title; - FixOneOf(schema); + // FixOneOf(schema); return schema; } }