mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Remove debugging stuff
This commit is contained in:
parent
17876d0f27
commit
f1585c215a
5
.github/workflows/build.yaml
vendored
5
.github/workflows/build.yaml
vendored
@ -39,10 +39,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-dotnet@v1
|
- uses: actions/setup-dotnet@v1
|
||||||
|
|
||||||
# Debugging, remove later
|
# Disabe Strong Name Verification to let us pull a switch-a-roo
|
||||||
- run: "tree C:\\\"Program Files (x86)\"\\\"Microsoft SDKs\"\\Windows\\v10.0A\\bin\\\"NETFX 4.8 Tools\"\\x64\\ /f"
|
|
||||||
|
|
||||||
# Epic moment
|
|
||||||
- run: "C:\\\"Program Files (x86)\"\\\"Microsoft SDKs\"\\Windows\\v10.0A\\bin\\\"NETFX 4.8 Tools\"\\x64\\sn.exe -Vr *"
|
- run: "C:\\\"Program Files (x86)\"\\\"Microsoft SDKs\"\\Windows\\v10.0A\\bin\\\"NETFX 4.8 Tools\"\\x64\\sn.exe -Vr *"
|
||||||
|
|
||||||
- name: Build Project
|
- name: Build Project
|
||||||
|
|||||||
@ -59,22 +59,10 @@ public static class SchemaExporter
|
|||||||
return GetJsonSchema().ToJson();
|
return GetJsonSchema().ToJson();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void FixOneOf(JsonSchema schema)
|
|
||||||
{
|
|
||||||
if (schema.OneOf.Count != 0)
|
|
||||||
{
|
|
||||||
schema.Reference = schema.OneOf.First();
|
|
||||||
schema.OneOf.Clear();
|
|
||||||
foreach (var property in schema.Reference.Properties.Values) FixOneOf(property);
|
|
||||||
}
|
|
||||||
foreach (var property in schema.Properties.Values) FixOneOf(property);
|
|
||||||
}
|
|
||||||
|
|
||||||
private JsonSchema GetJsonSchema()
|
private JsonSchema GetJsonSchema()
|
||||||
{
|
{
|
||||||
var schema = JsonSchema.FromType<T>(_generatorSettings);
|
var schema = JsonSchema.FromType<T>(_generatorSettings);
|
||||||
schema.Title = _title;
|
schema.Title = _title;
|
||||||
// FixOneOf(schema);
|
|
||||||
return schema;
|
return schema;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user