AllowReferencesWithProperties

This commit is contained in:
Ben C 2022-05-23 08:49:15 -04:00 committed by GitHub
parent 942371bc40
commit 68a86652f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<PlanetConfig>("Celestial Body Schema", $"{folderName}/body_schema", settings);
@ -73,7 +74,7 @@ public static class SchemaExporter
{
var schema = JsonSchema.FromType<T>(_generatorSettings);
schema.Title = _title;
FixOneOf(schema);
// FixOneOf(schema);
return schema;
}
}