From 8f81a49f2d393ff69efafc0713c4d80b0deb6b77 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Mon, 8 Apr 2024 10:28:24 -0400 Subject: [PATCH] Add valid data --- test/valid-data/lowercase/main.ts | 4 ++++ test/valid-data/lowercase/schema.json | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 test/valid-data/lowercase/main.ts create mode 100644 test/valid-data/lowercase/schema.json diff --git a/test/valid-data/lowercase/main.ts b/test/valid-data/lowercase/main.ts new file mode 100644 index 000000000..c766c3a2a --- /dev/null +++ b/test/valid-data/lowercase/main.ts @@ -0,0 +1,4 @@ +/** The built-in color schemes, cased. */ +type Foo = "Accent"; + +export type MyType = Lowercase; diff --git a/test/valid-data/lowercase/schema.json b/test/valid-data/lowercase/schema.json new file mode 100644 index 000000000..96f16e2a8 --- /dev/null +++ b/test/valid-data/lowercase/schema.json @@ -0,0 +1,10 @@ +{ + "$ref": "#/definitions/MyType", + "$schema": "http://json-schema.org/draft-07/schema#", + "definitions": { + "MyType": { + "const": "accent", + "type": "string" + } + } + }