Remove debugging stuff

This commit is contained in:
Ben C 2022-05-23 09:06:51 -04:00 committed by GitHub
parent 17876d0f27
commit f1585c215a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 16 deletions

View File

@ -39,10 +39,7 @@ jobs:
- uses: actions/setup-dotnet@v1
# Debugging, remove later
- run: "tree C:\\\"Program Files (x86)\"\\\"Microsoft SDKs\"\\Windows\\v10.0A\\bin\\\"NETFX 4.8 Tools\"\\x64\\ /f"
# Epic moment
# Disabe Strong Name Verification to let us pull a switch-a-roo
- run: "C:\\\"Program Files (x86)\"\\\"Microsoft SDKs\"\\Windows\\v10.0A\\bin\\\"NETFX 4.8 Tools\"\\x64\\sn.exe -Vr *"
- name: Build Project

View File

@ -59,22 +59,10 @@ public static class SchemaExporter
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()
{
var schema = JsonSchema.FromType<T>(_generatorSettings);
schema.Title = _title;
// FixOneOf(schema);
return schema;
}
}