mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
AllowReferencesWithProperties
This commit is contained in:
parent
942371bc40
commit
68a86652f0
@ -19,7 +19,8 @@ public static class SchemaExporter
|
|||||||
{
|
{
|
||||||
IgnoreObsoleteProperties = true,
|
IgnoreObsoleteProperties = true,
|
||||||
DefaultReferenceTypeNullHandling = ReferenceTypeNullHandling.NotNull,
|
DefaultReferenceTypeNullHandling = ReferenceTypeNullHandling.NotNull,
|
||||||
FlattenInheritanceHierarchy = true
|
FlattenInheritanceHierarchy = true,
|
||||||
|
AllowReferencesWithProperties = true
|
||||||
};
|
};
|
||||||
Console.WriteLine("Outputting Body Schema");
|
Console.WriteLine("Outputting Body Schema");
|
||||||
var bodySchema = new Schema<PlanetConfig>("Celestial Body Schema", $"{folderName}/body_schema", settings);
|
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);
|
var schema = JsonSchema.FromType<T>(_generatorSettings);
|
||||||
schema.Title = _title;
|
schema.Title = _title;
|
||||||
FixOneOf(schema);
|
// FixOneOf(schema);
|
||||||
return schema;
|
return schema;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user