diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 33419219..e0b96dfa 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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 diff --git a/SchemaExporter/SchemaExporter.cs b/SchemaExporter/SchemaExporter.cs index 19388b9d..52e0aaa4 100644 --- a/SchemaExporter/SchemaExporter.cs +++ b/SchemaExporter/SchemaExporter.cs @@ -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(_generatorSettings); schema.Title = _title; - // FixOneOf(schema); return schema; } }