diff --git a/test/inputs/schema/top-level-enum.1.json b/test/inputs/schema/top-level-enum.1.json new file mode 100644 index 00000000..3700087a --- /dev/null +++ b/test/inputs/schema/top-level-enum.1.json @@ -0,0 +1 @@ +"one" \ No newline at end of file diff --git a/test/inputs/schema/top-level-enum.schema b/test/inputs/schema/top-level-enum.schema new file mode 100644 index 00000000..ee591b84 --- /dev/null +++ b/test/inputs/schema/top-level-enum.schema @@ -0,0 +1,8 @@ +{ + "type": "string", + "enum": [ + "one", + "three", + "two" + ] +} \ No newline at end of file diff --git a/test/languages.ts b/test/languages.ts index b613c73d..02977747 100644 --- a/test/languages.ts +++ b/test/languages.ts @@ -49,7 +49,9 @@ export const CSharpLanguage: Language = { "31189.json" // JSON.NET doesn't accept year 0000 as 1BC, though it should ], skipMiscJSON: false, - skipSchema: [], + skipSchema: [ + "top-level-enum.schema" // The code we generate for top-level enums is incompatible with the driver + ], rendererOptions: {}, quickTestRendererOptions: [{ "array-type": "list" }, { "csharp-version": "5" }, { density: "dense" }], sourceFiles: ["src/Language/CSharp.ts"]