Generated-output differences

quicktype output changed between the PR base and tested PR merge revisions.
← Back to the pull request
63test cases
125files differ
125modified
0new
0deleted
338changed lines
+169 −169insertions / deletions
Base 11dc463f831ac7bcd5205fad8db04e90ef424c0e · PR merge 33bcf8bca6ddaf6f914ddfa71e74cb73ee8b5f89 · Head 62a55840334f43ab12013c51692e4dd47ac685cb · raw patch
Test case

test/inputs/regressions/unicode-codepoint-length.schema

1 generated file · +1 −1
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -11,7 +11,7 @@ export interface TopLevel {
1111 exact: string;
1212 maximum: string;
1313 minimum: string;
14- [property: string]: unknown | string | string | string;
14+ [property: string]: unknown;
1515 }
1616
1717 // Converts JSON strings to/from your types
Test case

test/inputs/schema/any.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -12,7 +12,7 @@
1212 export type TopLevel = {
1313 foo: mixed;
1414 values: { [key: string]: mixed };
15- [property: string]: mixed | mixed | { [key: string]: mixed };
15+ [property: string]: mixed;
1616 };
1717
1818 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -10,7 +10,7 @@
1010 export interface TopLevel {
1111 foo: unknown;
1212 values: { [key: string]: unknown };
13- [property: string]: unknown | unknown | { [key: string]: unknown };
13+ [property: string]: unknown;
1414 }
1515
1616 // Converts JSON strings to/from your types
Test case

test/inputs/schema/bool-string.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -17,7 +17,7 @@ export type TopLevel = {
1717 optional?: string;
1818 unionWithBool: UnionWithBool;
1919 unionWithBoolAndEnum: UnionWithBool;
20- [property: string]: mixed | (null | string)[] | string[] | null | string | string | string | UnionWithBool | UnionWithBool;
20+ [property: string]: mixed;
2121 };
2222
2323 export type UnionWithBool = boolean | string;
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -15,7 +15,7 @@ export interface TopLevel {
1515 optional?: string;
1616 unionWithBool: UnionWithBool;
1717 unionWithBoolAndEnum: UnionWithBool;
18- [property: string]: unknown | (null | string)[] | string[] | null | string | string | string | UnionWithBool | UnionWithBool;
18+ [property: string]: unknown;
1919 }
2020
2121 export type UnionWithBool = boolean | string;
Test case

test/inputs/schema/camelCase.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -12,7 +12,7 @@
1212 export type TopLevel = {
1313 myProperty?: string;
1414 secondProperty?: string;
15- [property: string]: mixed | string | string;
15+ [property: string]: mixed;
1616 };
1717
1818 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -10,7 +10,7 @@
1010 export interface TopLevel {
1111 myProperty?: string;
1212 secondProperty?: string;
13- [property: string]: unknown | string | string;
13+ [property: string]: unknown;
1414 }
1515
1616 // Converts JSON strings to/from your types
Test case

test/inputs/schema/class-map-union.schema

2 generated files · +4 −4
Mschema-flowdefault / TopLevel.js+2 −2
@@ -16,14 +16,14 @@ export type TopLevel = {
1616 export type TopLevelUnion = {
1717 foo?: Foo;
1818 bar?: Bar;
19- [property: string]: UnionValue | Foo | Bar;
19+ [property: string]: UnionValue | Foo | Bar | void;
2020 };
2121
2222 export type Bar = boolean | BarObject | string;
2323
2424 export type BarObject = {
2525 quux?: number;
26- [property: string]: mixed | number;
26+ [property: string]: mixed;
2727 };
2828
2929 export type Foo = boolean | number | BarObject;
Mschema-typescriptdefault / TopLevel.ts+2 −2
@@ -14,14 +14,14 @@ export interface TopLevel {
1414 export interface TopLevelUnion {
1515 foo?: Foo;
1616 bar?: Bar;
17- [property: string]: UnionValue | Foo | Bar;
17+ [property: string]: UnionValue | Foo | Bar | undefined;
1818 }
1919
2020 export type Bar = boolean | BarObject | string;
2121
2222 export interface BarObject {
2323 quux?: number;
24- [property: string]: unknown | number;
24+ [property: string]: unknown;
2525 }
2626
2727 export type Foo = boolean | number | BarObject;
Test case

test/inputs/schema/class-with-additional.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -15,7 +15,7 @@ export type TopLevel = {
1515
1616 export type Map = {
1717 foo?: number;
18- [property: string]: boolean | number;
18+ [property: string]: boolean | number | void;
1919 };
2020
2121 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -13,7 +13,7 @@ export interface TopLevel {
1313
1414 export interface Map {
1515 foo?: number;
16- [property: string]: boolean | number;
16+ [property: string]: boolean | number | undefined;
1717 }
1818
1919 // Converts JSON strings to/from your types
Test case

test/inputs/schema/const-non-string.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -15,7 +15,7 @@ export type TopLevel = {
1515 kind: Kind;
1616 ratio: number;
1717 version: number;
18- [property: string]: mixed | number | boolean | Kind | number | number;
18+ [property: string]: mixed;
1919 };
2020
2121 export type Kind =
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -13,7 +13,7 @@ export interface TopLevel {
1313 kind: Kind;
1414 ratio: number;
1515 version: number;
16- [property: string]: unknown | number | boolean | Kind | number | number;
16+ [property: string]: unknown;
1717 }
1818
1919 export type Kind = "widget";
Test case

test/inputs/schema/constructor.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 constructor?: UnionConstructor;
14- [property: string]: mixed | UnionConstructor;
14+ [property: string]: mixed;
1515 };
1616
1717 export type UnionConstructor = Constructor | number;
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 constructor?: UnionConstructor;
12- [property: string]: unknown | UnionConstructor;
12+ [property: string]: unknown;
1313 }
1414
1515 export type UnionConstructor = object | number;
Test case

test/inputs/schema/cut-enum.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 foo: number;
14- [property: string]: mixed | number;
14+ [property: string]: mixed;
1515 };
1616
1717 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 foo: number;
12- [property: string]: unknown | number;
12+ [property: string]: unknown;
1313 }
1414
1515 // Converts JSON strings to/from your types
Test case

test/inputs/schema/date-time-or-string.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -12,7 +12,7 @@
1212 export type TopLevel = {
1313 bar: BarUnion;
1414 foo: string;
15- [property: string]: mixed | BarUnion | string;
15+ [property: string]: mixed;
1616 };
1717
1818 export type BarUnion = Date | BarEnum;
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -10,7 +10,7 @@
1010 export interface TopLevel {
1111 bar: BarUnion;
1212 foo: string;
13- [property: string]: unknown | BarUnion | string;
13+ [property: string]: unknown;
1414 }
1515
1616 export type BarUnion = Date | BarEnum;
Test case

test/inputs/schema/description-with-double-quotes.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -14,7 +14,7 @@
1414 */
1515 export type TopLevel = {
1616 foo?: boolean;
17- [property: string]: mixed | boolean;
17+ [property: string]: mixed;
1818 };
1919
2020 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -12,7 +12,7 @@
1212 */
1313 export interface TopLevel {
1414 foo?: boolean;
15- [property: string]: unknown | boolean;
15+ [property: string]: unknown;
1616 }
1717
1818 // Converts JSON strings to/from your types
Test case

test/inputs/schema/description.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -44,7 +44,7 @@ export type ObjectOrStringObject = {
4444 * This must not get lost
4545 */
4646 prop: number;
47- [property: string]: mixed | number;
47+ [property: string]: mixed;
4848 };
4949
5050 /**
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -40,7 +40,7 @@ export interface ObjectOrStringObject {
4040 * This must not get lost
4141 */
4242 prop: number;
43- [property: string]: unknown | number;
43+ [property: string]: unknown;
4444 }
4545
4646 /**
Test case

test/inputs/schema/enum-large.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -12,7 +12,7 @@
1212 export type TopLevel = {
1313 callsign: Callsign;
1414 priority: Priority;
15- [property: string]: mixed | Callsign | Priority;
15+ [property: string]: mixed;
1616 };
1717
1818 export type Callsign =
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -10,7 +10,7 @@
1010 export interface TopLevel {
1111 callsign: Callsign;
1212 priority: Priority;
13- [property: string]: unknown | Callsign | Priority;
13+ [property: string]: unknown;
1414 }
1515
1616 export type Callsign = "alpha" | "bravo" | "charlie" | "delta" | "echo" | "foxtrot" | "golf" | "hotel" | "india" | "juliett" | "kilo" | "lima" | "mike" | "november" | "oscar" | "papa" | "quebec" | "romeo" | "sierra" | "tango";
Test case

test/inputs/schema/enum-with-values.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 weekdays: Weekdays;
14- [property: string]: mixed | Weekdays;
14+ [property: string]: mixed;
1515 };
1616
1717 export type Weekdays =
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 weekdays: Weekdays;
12- [property: string]: unknown | Weekdays;
12+ [property: string]: unknown;
1313 }
1414
1515 export type Weekdays = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
Test case

test/inputs/schema/enum.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -15,7 +15,7 @@ export type TopLevel = {
1515 gve: Gve;
1616 lvc?: Lvc;
1717 otherArr?: OtherArr[];
18- [property: string]: mixed | Arr[] | string | Gve | Lvc | OtherArr[];
18+ [property: string]: mixed;
1919 };
2020
2121 export type Arr = OtherArr | number;
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -13,7 +13,7 @@ export interface TopLevel {
1313 gve: Gve;
1414 lvc?: Lvc;
1515 otherArr?: OtherArr[];
16- [property: string]: unknown | Arr[] | string | Gve | Lvc | OtherArr[];
16+ [property: string]: unknown;
1717 }
1818
1919 export type Arr = OtherArr | number;
Test case

test/inputs/schema/fractional-bounds.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 value: number;
14- [property: string]: mixed | number;
14+ [property: string]: mixed;
1515 };
1616
1717 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 value: number;
12- [property: string]: unknown | number;
12+ [property: string]: unknown;
1313 }
1414
1515 // Converts JSON strings to/from your types
Test case

test/inputs/schema/go-schema-pattern-properties.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 map: { [key: string]: number };
14- [property: string]: mixed | { [key: string]: number };
14+ [property: string]: mixed;
1515 };
1616
1717 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 map: { [key: string]: number };
12- [property: string]: unknown | { [key: string]: number };
12+ [property: string]: unknown;
1313 }
1414
1515 // Converts JSON strings to/from your types
Test case

test/inputs/schema/haskell-enum-forbidden.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 health: Health;
14- [property: string]: mixed | Health;
14+ [property: string]: mixed;
1515 };
1616
1717 export type Health =
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 health: Health;
12- [property: string]: unknown | Health;
12+ [property: string]: unknown;
1313 }
1414
1515 export type Health = "ok" | "error";
Test case

test/inputs/schema/id-no-address.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 item: number;
14- [property: string]: mixed | number;
14+ [property: string]: mixed;
1515 };
1616
1717 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 item: number;
12- [property: string]: unknown | number;
12+ [property: string]: unknown;
1313 }
1414
1515 // Converts JSON strings to/from your types
Test case

test/inputs/schema/id-root.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 bar: number;
14- [property: string]: mixed | number;
14+ [property: string]: mixed;
1515 };
1616
1717 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 bar: number;
12- [property: string]: unknown | number;
12+ [property: string]: unknown;
1313 }
1414
1515 // Converts JSON strings to/from your types
Test case

test/inputs/schema/ie-suffix-singularization.schema

2 generated files · +4 −4
Mschema-flowdefault / TopLevel.js+2 −2
@@ -11,13 +11,13 @@
1111
1212 export type TopLevel = {
1313 cookies: Cookie[];
14- [property: string]: mixed | Cookie[];
14+ [property: string]: mixed;
1515 };
1616
1717 export type Cookie = {
1818 name: string;
1919 value: string;
20- [property: string]: mixed | string | string;
20+ [property: string]: mixed;
2121 };
2222
2323 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+2 −2
@@ -9,13 +9,13 @@
99
1010 export interface TopLevel {
1111 cookies: Cookie[];
12- [property: string]: unknown | Cookie[];
12+ [property: string]: unknown;
1313 }
1414
1515 export interface Cookie {
1616 name: string;
1717 value: string;
18- [property: string]: unknown | string | string;
18+ [property: string]: unknown;
1919 }
2020
2121 // Converts JSON strings to/from your types
Test case

test/inputs/schema/implicit-all-of.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -13,7 +13,7 @@ export type TopLevel = {
1313 foo: number;
1414 bar: boolean;
1515 quux: string;
16- [property: string]: mixed | number | boolean | string;
16+ [property: string]: mixed;
1717 };
1818
1919 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -11,7 +11,7 @@ export interface TopLevel {
1111 foo: number;
1212 bar: boolean;
1313 quux: string;
14- [property: string]: unknown | number | boolean | string;
14+ [property: string]: unknown;
1515 }
1616
1717 // Converts JSON strings to/from your types
Test case

test/inputs/schema/implicit-class-array-union.schema

2 generated files · +4 −4
Mschema-flowdefault / TopLevel.js+2 −2
@@ -11,14 +11,14 @@
1111
1212 export type TopLevel = {
1313 foo: FooUnion;
14- [property: string]: mixed | FooUnion;
14+ [property: string]: mixed;
1515 };
1616
1717 export type FooUnion = number[] | boolean | number | number | null | FooObject | string;
1818
1919 export type FooObject = {
2020 bar: number;
21- [property: string]: mixed | number;
21+ [property: string]: mixed;
2222 };
2323
2424 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+2 −2
@@ -9,14 +9,14 @@
99
1010 export interface TopLevel {
1111 foo: FooUnion;
12- [property: string]: unknown | FooUnion;
12+ [property: string]: unknown;
1313 }
1414
1515 export type FooUnion = number[] | boolean | number | number | null | FooObject | string;
1616
1717 export interface FooObject {
1818 bar: number;
19- [property: string]: unknown | number;
19+ [property: string]: unknown;
2020 }
2121
2222 // Converts JSON strings to/from your types
Test case

test/inputs/schema/implicit-one-of.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -13,7 +13,7 @@ export type TopLevel = {
1313 foo: number;
1414 bar?: boolean;
1515 quux?: string;
16- [property: string]: mixed | number | boolean | string;
16+ [property: string]: mixed;
1717 };
1818
1919 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -11,7 +11,7 @@ export interface TopLevel {
1111 foo: number;
1212 bar?: boolean;
1313 quux?: string;
14- [property: string]: unknown | number | boolean | string;
14+ [property: string]: unknown;
1515 }
1616
1717 // Converts JSON strings to/from your types
Test case

test/inputs/schema/integer-float-union.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 number: number;
14- [property: string]: mixed | number;
14+ [property: string]: mixed;
1515 };
1616
1717 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 number: number;
12- [property: string]: unknown | number;
12+ [property: string]: unknown;
1313 }
1414
1515 // Converts JSON strings to/from your types
Test case

test/inputs/schema/integer-string.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -17,7 +17,7 @@ export type TopLevel = {
1717 optional?: string;
1818 unionWithInt: UnionWithInt;
1919 unionWithIntAndEnum: UnionWithInt;
20- [property: string]: mixed | (null | string)[] | string[] | null | string | string | string | UnionWithInt | UnionWithInt;
20+ [property: string]: mixed;
2121 };
2222
2323 export type UnionWithInt = number | string;
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -15,7 +15,7 @@ export interface TopLevel {
1515 optional?: string;
1616 unionWithInt: UnionWithInt;
1717 unionWithIntAndEnum: UnionWithInt;
18- [property: string]: unknown | (null | string)[] | string[] | null | string | string | string | UnionWithInt | UnionWithInt;
18+ [property: string]: unknown;
1919 }
2020
2121 export type UnionWithInt = number | string;
Test case

test/inputs/schema/integer-type.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -19,7 +19,7 @@ export type TopLevel = {
1919 small_negative: number;
2020 small_positive: number;
2121 unbounded: number;
22- [property: string]: mixed | number | number | number | number | number | number | number | number | number;
22+ [property: string]: mixed;
2323 };
2424
2525 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -17,7 +17,7 @@ export interface TopLevel {
1717 small_negative: number;
1818 small_positive: number;
1919 unbounded: number;
20- [property: string]: unknown | number | number | number | number | number | number | number | number | number;
20+ [property: string]: unknown;
2121 }
2222
2323 // Converts JSON strings to/from your types
Test case

test/inputs/schema/intersection.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -16,7 +16,7 @@ export type TopLevel = {
1616 export type Intersection = {
1717 foo: number;
1818 bar?: string;
19- [property: string]: mixed | number | string;
19+ [property: string]: mixed;
2020 };
2121
2222 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -14,7 +14,7 @@ export interface TopLevel {
1414 export interface Intersection {
1515 foo: number;
1616 bar?: string;
17- [property: string]: unknown | number | string;
17+ [property: string]: unknown;
1818 }
1919
2020 // Converts JSON strings to/from your types
Test case

test/inputs/schema/keyword-enum.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 enum?: Enum;
14- [property: string]: mixed | Enum;
14+ [property: string]: mixed;
1515 };
1616
1717 export type Enum =
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 enum?: Enum;
12- [property: string]: unknown | Enum;
12+ [property: string]: unknown;
1313 }
1414
1515 export type Enum = "_" | "_Bool" | "_Complex" | "_Imaginery" | "abstract" | "alignas" | "alignof" | "and" | "and_eq" | "any" | "Any" | "array" | "as" | "asm" | "assert" | "associatedtype" | "associativity" | "async" | "atomic" | "atomic_cancel" | "atomic_commit" | "atomic_noexcept" | "auto" | "await" | "base" | "bitand" | "bitor" | "BOOL" | "bool" | "boolean" | "break" | "bycopy" | "byref" | "byte" | "case" | "catch" | "chan" | "char" | "char16_t" | "char32_t" | "checked" | "class" | "Class" | "co_await" | "co_return" | "co_yield" | "compl" | "concept" | "console" | "const" | "const_cast" | "constexpr" | "constructor" | "continue" | "convenience" | "convert" | "converter" | "date" | "date_parse_handling" | "debugger" | "decimal" | "declare" | "decltype" | "decode_string" | "def" | "default" | "defer" | "deinit" | "del" | "delegate" | "delete" | "dict" | "dictionary" | "didSet" | "do" | "double" | "dynamic" | "dynamic_cast" | "elif" | "else" | "encode_quick_type" | "enum" | "event" | "except" | "exception" | "explicit" | "export" | "exposing" | "extends" | "extension" | "extern" | "fallthrough" | "false" | "False" | "fileprivate" | "final" | "finally" | "fixed" | "float" | "for" | "foreach" | "friend" | "from" | "from_json" | "func" | "function" | "get" | "global" | "go" | "goto" | "guard" | "hasOwnProperty" | "id" | "if" | "IMP" | "implements" | "implicit" | "import" | "in" | "indirect" | "infix" | "init" | "inline" | "inout" | "instanceof" | "int" | "interface" | "internal" | "iterable" | "is" | "jdec" | "jenc" | "jpipe" | "json" | "json_converter" | "json_serializer" | "json_token" | "json_writer" | "lambda" | "lazy" | "left" | "let" | "list" | "lock" | "long" | "map" | "metadata_property_handling" | "module" | "mutable" | "mutating" | "namespace" | "native" | "new" | "newtonsoft" | "nil" | "NO" | "noexcept" | "nonatomic" | "none" | "None" | "nonlocal" | "nonmutating" | "not" | "not_eq" | "NSString" | "NULL" | "null" | "nullptr" | "number" | "object" | "of" | "oneway" | "open" | "operator" | "optional" | "or" | "or_eq" | "out" | "override" | "package" | "params" | "pass" | "port" | "postfix" | "precedence" | "prefix" | "print" | "printf" | "private" | "protected" | "Protocol" | "protocol" | "public" | "quicktype" | "raise" | "range" | "readonly" | "ref" | "register" | "reinterpret_cast" | "repeat" | "require" | "required" | "requires" | "restrict" | "retain" | "rethrows" | "return" | "right" | "sbyte" | "sealed" | "SEL" | "select" | "Self" | "self" | "serialize" | "set" | "short" | "signed" | "sizeof" | "stackalloc" | "static" | "static_assert" | "static_cast" | "strictfp" | "string" | "struct" | "subscript" | "super" | "switch" | "symbol" | "synchronized" | "system" | "template" | "then" | "this" | "thread_local" | "throw" | "throws" | "to_json" | "top_level" | "transient" | "True" | "true" | "try" | "Type" | "type" | "typealias" | "typedef" | "typeid" | "typename" | "typeof" | "uint" | "ulong" | "unchecked" | "undefined" | "union" | "unowned" | "unsafe" | "unsigned" | "ushort" | "using" | "var" | "virtual" | "void" | "volatile" | "wchar_t" | "weak" | "where" | "while" | "willSet" | "with" | "xor" | "xor_eq" | "YES" | "yield" | "dummy";
Test case

test/inputs/schema/keyword-unions.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -287,7 +287,7 @@ export type TopLevel = {
287287 xor_eq?: UnionXorEq;
288288 YES?: UnionYES;
289289 yield?: UnionYield;
290- [property: string]: mixed | UnionUnion | UnionBool | UnionComplex | UnionImaginery | UnionAbstract | UnionAlignas | UnionAlignof | UnionAnd | UnionAndEq | UnionAnyUnion | UnionAny | UnionArray | UnionAs | UnionASM | UnionAssert | UnionAssociatedtype | UnionAssociativity | UnionAsync | UnionAtomic | UnionAtomicCancel | UnionAtomicCommit | UnionAtomicNoexcept | UnionAuto | UnionAwait | UnionBase | UnionBitand | UnionBitor | UnionBOOL | UnionBoolUnion | UnionBoolean | UnionBreak | UnionBycopy | UnionByref | UnionByte | UnionCase | UnionCatch | UnionChan | UnionChar | UnionChar16T | UnionChar32T | UnionChecked | UnionClassUnion | UnionClass | UnionCoAwait | UnionCoReturn | UnionCoYield | UnionCompl | UnionConcept | UnionConsole | UnionConst | UnionConstCast | UnionConstexpr | UnionConstructor | UnionContinue | UnionConvenience | UnionConvert | UnionConverter | UnionDate | UnionDateParseHandling | UnionDebugger | UnionDecimal | UnionDeclare | UnionDecltype | UnionDecodeString | UnionDef | UnionDefault | UnionDefer | UnionDeinit | UnionDel | UnionDelegate | UnionDelete | UnionDict | UnionDictionary | UnionDidSet | UnionDo | UnionDouble | number | UnionDynamic | UnionDynamicCast | UnionElif | UnionElse | UnionEncodeQuickType | UnionEnum | UnionEvent | UnionExcept | UnionException | UnionExplicit | UnionExport | UnionExposing | UnionExtends | UnionExtension | UnionExtern | UnionFallthrough | UnionFalseUnion | UnionFalse | UnionFileprivate | UnionFinal | UnionFinally | UnionFixed | UnionFloat | UnionFor | UnionForeach | UnionFriend | UnionFrom | UnionFromJSON | UnionFunc | UnionFunction | UnionGet | UnionGlobal | UnionGo | UnionGoto | UnionGuard | UnionHasOwnProperty | UnionID | UnionIf | UnionIMP | UnionImplements | UnionImplicit | UnionImport | UnionIn | UnionIndirect | UnionInfix | UnionInit | UnionInline | UnionInout | UnionInstanceof | UnionInt | UnionInterface | UnionInternal | UnionIs | UnionIterable | UnionJdec | UnionJenc | UnionJpipe | UnionJSON | UnionJSONConverter | UnionJSONSerializer | UnionJSONToken | UnionJSONWriter | UnionLambda | UnionLazy | UnionLeft | UnionLet | UnionList | UnionLock | UnionLong | UnionMap | UnionMetadataPropertyHandling | UnionModule | UnionMutable | UnionMutating | UnionNamespace | UnionNative | UnionNew | UnionNewtonsoft | UnionNil | UnionNO | UnionNoexcept | UnionNonatomic | UnionNoneUnion | UnionNone | UnionNonlocal | UnionNonmutating | UnionNot | UnionNotEq | UnionNSString | UnionNULL | UnionNull | UnionNullptr | UnionNumber | UnionObject | UnionOf | UnionOneway | UnionOpen | UnionOperator | UnionOptional | UnionOr | UnionOrEq | UnionOut | UnionOverride | UnionPackage | UnionParams | UnionPass | UnionPort | UnionPostfix | UnionPrecedence | UnionPrefix | UnionPrint | UnionPrintf | UnionPrivate | UnionProtected | UnionProtocol | UnionProtocolUnion | UnionPublic | UnionQuicktype | UnionRaise | UnionRange | UnionReadonly | UnionRef | UnionRegister | UnionReinterpretCast | UnionRepeat | UnionRequire | UnionRequired | UnionRequires | UnionRestrict | UnionRetain | UnionRethrows | UnionReturn | UnionRight | UnionSbyte | UnionSealed | UnionSEL | UnionSelect | UnionSelf | UnionSelfUnion | UnionSerialize | UnionSet | UnionShort | UnionSigned | UnionSizeof | UnionStackalloc | UnionStatic | UnionStaticAssert | UnionStaticCast | UnionStrictfp | UnionString | UnionStruct | UnionSubscript | UnionSuper | UnionSwitch | UnionSymbol | UnionSynchronized | UnionSystem | UnionTemplate | UnionThen | UnionThis | UnionThreadLocal | UnionThrow | UnionThrows | UnionToJSON | UnionTopLevel | UnionTransient | UnionTrue | UnionTrueUnion | UnionTry | UnionType | UnionTypeUnion | UnionTypealias | UnionTypedef | UnionTypeid | UnionTypename | UnionTypeof | UnionUint | UnionUlong | UnionUnchecked | UnionUndefined | UnionUnionUnion | UnionUnowned | UnionUnsafe | UnionUnsigned | UnionUshort | UnionUsing | UnionVar | UnionVirtual | UnionVoid | UnionVolatile | UnionWcharT | UnionWeak | UnionWhere | UnionWhile | UnionWillSet | UnionWith | UnionXor | UnionXorEq | UnionYES | UnionYield;
290+ [property: string]: mixed;
291291 };
292292
293293 export type UnionAny = Any | number;
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -285,7 +285,7 @@ export interface TopLevel {
285285 xor_eq?: UnionXorEq;
286286 YES?: UnionYES;
287287 yield?: UnionYield;
288- [property: string]: unknown | UnionUnion | UnionBool | UnionComplex | UnionImaginery | UnionAbstract | UnionAlignas | UnionAlignof | UnionAnd | UnionAndEq | UnionAnyUnion | UnionAny | UnionArray | UnionAs | UnionASM | UnionAssert | UnionAssociatedtype | UnionAssociativity | UnionAsync | UnionAtomic | UnionAtomicCancel | UnionAtomicCommit | UnionAtomicNoexcept | UnionAuto | UnionAwait | UnionBase | UnionBitand | UnionBitor | UnionBOOL | UnionBoolUnion | UnionBoolean | UnionBreak | UnionBycopy | UnionByref | UnionByte | UnionCase | UnionCatch | UnionChan | UnionChar | UnionChar16T | UnionChar32T | UnionChecked | UnionClassUnion | UnionClass | UnionCoAwait | UnionCoReturn | UnionCoYield | UnionCompl | UnionConcept | UnionConsole | UnionConst | UnionConstCast | UnionConstexpr | UnionConstructor | UnionContinue | UnionConvenience | UnionConvert | UnionConverter | UnionDate | UnionDateParseHandling | UnionDebugger | UnionDecimal | UnionDeclare | UnionDecltype | UnionDecodeString | UnionDef | UnionDefault | UnionDefer | UnionDeinit | UnionDel | UnionDelegate | UnionDelete | UnionDict | UnionDictionary | UnionDidSet | UnionDo | UnionDouble | number | UnionDynamic | UnionDynamicCast | UnionElif | UnionElse | UnionEncodeQuickType | UnionEnum | UnionEvent | UnionExcept | UnionException | UnionExplicit | UnionExport | UnionExposing | UnionExtends | UnionExtension | UnionExtern | UnionFallthrough | UnionFalseUnion | UnionFalse | UnionFileprivate | UnionFinal | UnionFinally | UnionFixed | UnionFloat | UnionFor | UnionForeach | UnionFriend | UnionFrom | UnionFromJSON | UnionFunc | UnionFunction | UnionGet | UnionGlobal | UnionGo | UnionGoto | UnionGuard | UnionHasOwnProperty | UnionID | UnionIf | UnionIMP | UnionImplements | UnionImplicit | UnionImport | UnionIn | UnionIndirect | UnionInfix | UnionInit | UnionInline | UnionInout | UnionInstanceof | UnionInt | UnionInterface | UnionInternal | UnionIs | UnionIterable | UnionJdec | UnionJenc | UnionJpipe | UnionJSON | UnionJSONConverter | UnionJSONSerializer | UnionJSONToken | UnionJSONWriter | UnionLambda | UnionLazy | UnionLeft | UnionLet | UnionList | UnionLock | UnionLong | UnionMap | UnionMetadataPropertyHandling | UnionModule | UnionMutable | UnionMutating | UnionNamespace | UnionNative | UnionNew | UnionNewtonsoft | UnionNil | UnionNO | UnionNoexcept | UnionNonatomic | UnionNoneUnion | UnionNone | UnionNonlocal | UnionNonmutating | UnionNot | UnionNotEq | UnionNSString | UnionNULL | UnionNull | UnionNullptr | UnionNumber | UnionObject | UnionOf | UnionOneway | UnionOpen | UnionOperator | UnionOptional | UnionOr | UnionOrEq | UnionOut | UnionOverride | UnionPackage | UnionParams | UnionPass | UnionPort | UnionPostfix | UnionPrecedence | UnionPrefix | UnionPrint | UnionPrintf | UnionPrivate | UnionProtected | UnionProtocol | UnionProtocolUnion | UnionPublic | UnionQuicktype | UnionRaise | UnionRange | UnionReadonly | UnionRef | UnionRegister | UnionReinterpretCast | UnionRepeat | UnionRequire | UnionRequired | UnionRequires | UnionRestrict | UnionRetain | UnionRethrows | UnionReturn | UnionRight | UnionSbyte | UnionSealed | UnionSEL | UnionSelect | UnionSelf | UnionSelfUnion | UnionSerialize | UnionSet | UnionShort | UnionSigned | UnionSizeof | UnionStackalloc | UnionStatic | UnionStaticAssert | UnionStaticCast | UnionStrictfp | UnionString | UnionStruct | UnionSubscript | UnionSuper | UnionSwitch | UnionSymbol | UnionSynchronized | UnionSystem | UnionTemplate | UnionThen | UnionThis | UnionThreadLocal | UnionThrow | UnionThrows | UnionToJSON | UnionTopLevel | UnionTransient | UnionTrue | UnionTrueUnion | UnionTry | UnionType | UnionTypeUnion | UnionTypealias | UnionTypedef | UnionTypeid | UnionTypename | UnionTypeof | UnionUint | UnionUlong | UnionUnchecked | UnionUndefined | UnionUnionUnion | UnionUnowned | UnionUnsafe | UnionUnsigned | UnionUshort | UnionUsing | UnionVar | UnionVirtual | UnionVoid | UnionVolatile | UnionWcharT | UnionWeak | UnionWhere | UnionWhile | UnionWillSet | UnionWith | UnionXor | UnionXorEq | UnionYES | UnionYield;
288+ [property: string]: unknown;
289289 }
290290
291291 export type UnionAny = object | number;
Test case

test/inputs/schema/list.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -14,7 +14,7 @@
1414 */
1515 export type TopLevel = {
1616 next?: TopLevel;
17- [property: string]: mixed | TopLevel;
17+ [property: string]: mixed;
1818 };
1919
2020 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -12,7 +12,7 @@
1212 */
1313 export interface TopLevel {
1414 next?: TopLevel;
15- [property: string]: unknown | TopLevel;
15+ [property: string]: unknown;
1616 }
1717
1818 // Converts JSON strings to/from your types
Test case

test/inputs/schema/min-max-items.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -15,7 +15,7 @@ export type TopLevel = {
1515 minOnly: string[];
1616 plain: string[];
1717 unionItems: UnionItem[];
18- [property: string]: mixed | number[] | number[] | string[] | string[] | UnionItem[];
18+ [property: string]: mixed;
1919 };
2020
2121 export type UnionItem = number | string;
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -13,7 +13,7 @@ export interface TopLevel {
1313 minOnly: [string, string, ...string[]];
1414 plain: string[];
1515 unionItems: [UnionItem, UnionItem, ...UnionItem[]];
16- [property: string]: unknown | number[] | [number, ...number[]] | [string, string, ...string[]] | string[] | [UnionItem, UnionItem, ...UnionItem[]];
16+ [property: string]: unknown;
1717 }
1818
1919 export type UnionItem = number | string;
Test case

test/inputs/schema/minmax-integer.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -18,7 +18,7 @@ export type TopLevel = {
1818 minMaxIntersection: number;
1919 minMaxUnion: number;
2020 union: number;
21- [property: string]: mixed | number | number | number | number | number | number | number | number;
21+ [property: string]: mixed;
2222 };
2323
2424 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -16,7 +16,7 @@ export interface TopLevel {
1616 minMaxIntersection: number;
1717 minMaxUnion: number;
1818 union: number;
19- [property: string]: unknown | number | number | number | number | number | number | number | number;
19+ [property: string]: unknown;
2020 }
2121
2222 // Converts JSON strings to/from your types
Test case

test/inputs/schema/minmax.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -18,7 +18,7 @@ export type TopLevel = {
1818 minMaxIntersection: number;
1919 minMaxUnion: number;
2020 union: number;
21- [property: string]: mixed | number | number | number | number | number | number | number | number;
21+ [property: string]: mixed;
2222 };
2323
2424 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -16,7 +16,7 @@ export interface TopLevel {
1616 minMaxIntersection: number;
1717 minMaxUnion: number;
1818 union: number;
19- [property: string]: unknown | number | number | number | number | number | number | number | number;
19+ [property: string]: unknown;
2020 }
2121
2222 // Converts JSON strings to/from your types
Test case

test/inputs/schema/minmaxlength.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -18,7 +18,7 @@ export type TopLevel = {
1818 minmaxlength: string;
1919 minMaxUnion: string;
2020 union: string;
21- [property: string]: mixed | string | InUnion | string | string | string | string | string | string;
21+ [property: string]: mixed;
2222 };
2323
2424 export type InUnion = number | string;
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -16,7 +16,7 @@ export interface TopLevel {
1616 minmaxlength: string;
1717 minMaxUnion: string;
1818 union: string;
19- [property: string]: unknown | string | InUnion | string | string | string | string | string | string;
19+ [property: string]: unknown;
2020 }
2121
2222 export type InUnion = number | string;
Test case

test/inputs/schema/multi-type-enum.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 foo: FooUnion;
14- [property: string]: mixed | FooUnion;
14+ [property: string]: mixed;
1515 };
1616
1717 export type FooUnion = boolean | number | FooEnum;
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 foo: FooUnion;
12- [property: string]: unknown | FooUnion;
12+ [property: string]: unknown;
1313 }
1414
1515 export type FooUnion = boolean | number | FooEnum;
Test case

test/inputs/schema/mutually-recursive.schema

2 generated files · +4 −4
Mschema-flowdefault / TopLevel.js+2 −2
@@ -13,12 +13,12 @@ export type Foo = TopLevel[] | TopLevel;
1313
1414 export type Bar = {
1515 foo: Foo;
16- [property: string]: mixed | Foo;
16+ [property: string]: mixed;
1717 };
1818
1919 export type TopLevel = {
2020 bar?: Bar;
21- [property: string]: mixed | Bar;
21+ [property: string]: mixed;
2222 };
2323
2424 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+2 −2
@@ -11,12 +11,12 @@ export type Foo = TopLevel[] | TopLevel;
1111
1212 export interface Bar {
1313 foo: Foo;
14- [property: string]: unknown | Foo;
14+ [property: string]: unknown;
1515 }
1616
1717 export interface TopLevel {
1818 bar?: Bar;
19- [property: string]: unknown | Bar;
19+ [property: string]: unknown;
2020 }
2121
2222 // Converts JSON strings to/from your types
Test case

test/inputs/schema/nested-intersection-union.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -18,7 +18,7 @@ export type Item = {
1818 id?: string;
1919 output?: string;
2020 summary?: string;
21- [property: string]: mixed | string | string | string | string;
21+ [property: string]: mixed;
2222 };
2323
2424 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -16,7 +16,7 @@ export interface Item {
1616 id?: string;
1717 output?: string;
1818 summary?: string;
19- [property: string]: unknown | string | string | string | string;
19+ [property: string]: unknown;
2020 }
2121
2222 // Converts JSON strings to/from your types
Test case

test/inputs/schema/non-standard-ref.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -13,7 +13,7 @@ export type TopLevel = {
1313 bar: number;
1414 foo: number;
1515 quux: boolean;
16- [property: string]: mixed | number | number | boolean;
16+ [property: string]: mixed;
1717 };
1818
1919 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -11,7 +11,7 @@ export interface TopLevel {
1111 bar: number;
1212 foo: number;
1313 quux: boolean;
14- [property: string]: unknown | number | number | boolean;
14+ [property: string]: unknown;
1515 }
1616
1717 // Converts JSON strings to/from your types
Test case

test/inputs/schema/nullable-optional-one-of.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -12,7 +12,7 @@
1212 export type TopLevel = {
1313 b?: null | string;
1414 kind: Kind;
15- [property: string]: mixed | null | string | Kind;
15+ [property: string]: mixed;
1616 };
1717
1818 export type Kind =
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -10,7 +10,7 @@
1010 export interface TopLevel {
1111 b?: null | string;
1212 kind: Kind;
13- [property: string]: unknown | null | string | Kind;
13+ [property: string]: unknown;
1414 }
1515
1616 export type Kind = "one" | "two";
Test case

test/inputs/schema/object-type-required.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -13,7 +13,7 @@ export type TopLevel = {
1313 empty: Empty;
1414 foo: string;
1515 bar?: string;
16- [property: string]: mixed | Empty | string | string;
16+ [property: string]: mixed;
1717 };
1818
1919 export type Empty = {
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -11,7 +11,7 @@ export interface TopLevel {
1111 empty: object;
1212 foo: string;
1313 bar?: string;
14- [property: string]: unknown | object | string | string;
14+ [property: string]: unknown;
1515 }
1616
1717 // Converts JSON strings to/from your types
Test case

test/inputs/schema/optional-constraints.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -15,7 +15,7 @@ export type TopLevel = {
1515 optPattern?: string;
1616 optString?: string;
1717 reqZeroMin: number;
18- [property: string]: mixed | number | number | string | string | number;
18+ [property: string]: mixed;
1919 };
2020
2121 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -13,7 +13,7 @@ export interface TopLevel {
1313 optPattern?: string;
1414 optString?: string;
1515 reqZeroMin: number;
16- [property: string]: unknown | number | number | string | string | number;
16+ [property: string]: unknown;
1717 }
1818
1919 // Converts JSON strings to/from your types
Test case

test/inputs/schema/pattern.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -13,7 +13,7 @@ export type TopLevel = {
1313 pattern1: string;
1414 pattern2: string;
1515 union: string;
16- [property: string]: mixed | string | string | string;
16+ [property: string]: mixed;
1717 };
1818
1919 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -11,7 +11,7 @@ export interface TopLevel {
1111 pattern1: string;
1212 pattern2: string;
1313 union: string;
14- [property: string]: unknown | string | string | string;
14+ [property: string]: unknown;
1515 }
1616
1717 // Converts JSON strings to/from your types
Test case

test/inputs/schema/postman-collection.schema

2 generated files · +4 −4
Mschema-flowdefault / TopLevel.js+2 −2
@@ -16,12 +16,12 @@ export type TopLevel = {
1616 item?: TopLevel[];
1717 name?: string;
1818 response?: Response[];
19- [property: string]: mixed | TopLevel[] | string | Response[];
19+ [property: string]: mixed;
2020 };
2121
2222 export type Response = {
2323 body?: string;
24- [property: string]: mixed | string;
24+ [property: string]: mixed;
2525 };
2626
2727 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+2 −2
@@ -14,12 +14,12 @@ export interface TopLevel {
1414 item?: TopLevel[];
1515 name?: string;
1616 response?: Response[];
17- [property: string]: unknown | TopLevel[] | string | Response[];
17+ [property: string]: unknown;
1818 }
1919
2020 export interface Response {
2121 body?: string;
22- [property: string]: unknown | string;
22+ [property: string]: unknown;
2323 }
2424
2525 // Converts JSON strings to/from your types
Test case

test/inputs/schema/prefix-items.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -12,7 +12,7 @@
1212 export type TopLevel = {
1313 open: Open[];
1414 tuple: Open[];
15- [property: string]: mixed | Open[] | Open[];
15+ [property: string]: mixed;
1616 };
1717
1818 export type Open = boolean | number;
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -10,7 +10,7 @@
1010 export interface TopLevel {
1111 open: Open[];
1212 tuple: Open[];
13- [property: string]: unknown | Open[] | Open[];
13+ [property: string]: unknown;
1414 }
1515
1616 export type Open = boolean | number;
Test case

test/inputs/schema/recursive-union-flattening.schema

2 generated files · +4 −4
Mschema-flowdefault / TopLevel.js+2 −2
@@ -15,12 +15,12 @@ export type TopLevelElement = mixed[] | boolean | number | null | TopLevelObject
1515
1616 export type TopLevelObject = {
1717 x?: X;
18- [property: string]: mixed | X;
18+ [property: string]: mixed;
1919 };
2020
2121 export type XObject = {
2222 x?: X;
23- [property: string]: mixed | X;
23+ [property: string]: mixed;
2424 };
2525
2626 export type XElement = mixed[] | boolean | number | null | XObject | string;
Mschema-typescriptdefault / TopLevel.ts+2 −2
@@ -13,12 +13,12 @@ export type TopLevelElement = unknown[] | boolean | number | null | TopLevelObje
1313
1414 export interface TopLevelObject {
1515 x?: X;
16- [property: string]: unknown | X;
16+ [property: string]: unknown;
1717 }
1818
1919 export interface XObject {
2020 x?: X;
21- [property: string]: unknown | X;
21+ [property: string]: unknown;
2222 }
2323
2424 export type XElement = unknown[] | boolean | number | null | XObject | string;
Test case

test/inputs/schema/ref-id-files.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 foo: number;
14- [property: string]: mixed | number;
14+ [property: string]: mixed;
1515 };
1616
1717 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 foo: number;
12- [property: string]: unknown | number;
12+ [property: string]: unknown;
1313 }
1414
1515 // Converts JSON strings to/from your types
Test case

test/inputs/schema/ref-remote.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -14,7 +14,7 @@
1414 */
1515 export type TopLevel = {
1616 next?: TopLevel;
17- [property: string]: mixed | TopLevel;
17+ [property: string]: mixed;
1818 };
1919
2020 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -12,7 +12,7 @@
1212 */
1313 export interface TopLevel {
1414 next?: TopLevel;
15- [property: string]: unknown | TopLevel;
15+ [property: string]: unknown;
1616 }
1717
1818 // Converts JSON strings to/from your types
Test case

test/inputs/schema/renaming-bug.schema

2 generated files · +28 −28
Mschema-flowdefault / TopLevel.js+14 −14
@@ -13,60 +13,60 @@ export type TopLevel = {
1313 version?: string;
1414 fruits?: Fruit[];
1515 vehicles?: Vehicle[];
16- [property: string]: mixed | string | Fruit[] | Vehicle[];
16+ [property: string]: mixed;
1717 };
1818
1919 export type Fruit = {
2020 apple?: boolean;
2121 berries?: Berry[];
2222 orange?: boolean;
23- [property: string]: mixed | boolean | Berry[] | boolean;
23+ [property: string]: mixed;
2424 };
2525
2626 export type Berry = {
2727 color?: Color;
2828 name?: string;
2929 shapes?: Shape[];
30- [property: string]: mixed | Color | string | Shape[];
30+ [property: string]: mixed;
3131 };
3232
3333 export type Color = {
3434 rgb?: number;
35- [property: string]: mixed | number;
35+ [property: string]: mixed;
3636 };
3737
3838 export type Shape = {
3939 geometry?: Geometry;
4040 history?: History;
41- [property: string]: mixed | Geometry | History;
41+ [property: string]: mixed;
4242 };
4343
4444 export type Geometry = {
4545 rectShape?: RectShape;
4646 circularShape?: CircularShape[];
47- [property: string]: mixed | RectShape | CircularShape[];
47+ [property: string]: mixed;
4848 };
4949
5050 export type CircularShape = {
5151 shapeName?: string;
52- [property: string]: mixed | string;
52+ [property: string]: mixed;
5353 };
5454
5555 export type RectShape = {
5656 parts?: Part[];
57- [property: string]: mixed | Part[];
57+ [property: string]: mixed;
5858 };
5959
6060 export type Part = {
6161 depth?: string;
6262 length?: string;
6363 width?: string;
64- [property: string]: mixed | string | string | string;
64+ [property: string]: mixed;
6565 };
6666
6767 export type History = {
6868 class?: string;
69- [property: string]: mixed | string;
69+ [property: string]: mixed;
7070 };
7171
7272 export type Vehicle = {
@@ -76,25 +76,25 @@ export type Vehicle = {
7676 subModule?: boolean;
7777 type?: VehicleType;
7878 year?: string;
79- [property: string]: mixed | string | string | Speed | boolean | VehicleType | string;
79+ [property: string]: mixed;
8080 };
8181
8282 export type Speed = {
8383 velocity?: Limit;
84- [property: string]: mixed | Limit;
84+ [property: string]: mixed;
8585 };
8686
8787 export type Limit = {
8888 maximum?: number;
8989 minimum?: number;
90- [property: string]: mixed | number | number;
90+ [property: string]: mixed;
9191 };
9292
9393 export type VehicleType = {
9494 name?: Name;
9595 width?: Axis;
9696 length?: Axis;
97- [property: string]: mixed | Name | Axis | Axis;
97+ [property: string]: mixed;
9898 };
9999
100100 export type Axis =
Mschema-typescriptdefault / TopLevel.ts+14 −14
@@ -11,60 +11,60 @@ export interface TopLevel {
1111 version?: string;
1212 fruits?: Fruit[];
1313 vehicles?: Vehicle[];
14- [property: string]: unknown | string | Fruit[] | Vehicle[];
14+ [property: string]: unknown;
1515 }
1616
1717 export interface Fruit {
1818 apple?: boolean;
1919 berries?: Berry[];
2020 orange?: boolean;
21- [property: string]: unknown | boolean | Berry[] | boolean;
21+ [property: string]: unknown;
2222 }
2323
2424 export interface Berry {
2525 color?: Color;
2626 name?: string;
2727 shapes?: Shape[];
28- [property: string]: unknown | Color | string | Shape[];
28+ [property: string]: unknown;
2929 }
3030
3131 export interface Color {
3232 rgb?: number;
33- [property: string]: unknown | number;
33+ [property: string]: unknown;
3434 }
3535
3636 export interface Shape {
3737 geometry?: Geometry;
3838 history?: History;
39- [property: string]: unknown | Geometry | History;
39+ [property: string]: unknown;
4040 }
4141
4242 export interface Geometry {
4343 rectShape?: RectShape;
4444 circularShape?: CircularShape[];
45- [property: string]: unknown | RectShape | CircularShape[];
45+ [property: string]: unknown;
4646 }
4747
4848 export interface CircularShape {
4949 shapeName?: string;
50- [property: string]: unknown | string;
50+ [property: string]: unknown;
5151 }
5252
5353 export interface RectShape {
5454 parts?: Part[];
55- [property: string]: unknown | Part[];
55+ [property: string]: unknown;
5656 }
5757
5858 export interface Part {
5959 depth?: string;
6060 length?: string;
6161 width?: string;
62- [property: string]: unknown | string | string | string;
62+ [property: string]: unknown;
6363 }
6464
6565 export interface History {
6666 class?: string;
67- [property: string]: unknown | string;
67+ [property: string]: unknown;
6868 }
6969
7070 export interface Vehicle {
@@ -74,25 +74,25 @@ export interface Vehicle {
7474 subModule?: boolean;
7575 type?: VehicleType;
7676 year?: string;
77- [property: string]: unknown | string | string | Speed | boolean | VehicleType | string;
77+ [property: string]: unknown;
7878 }
7979
8080 export interface Speed {
8181 velocity?: Limit;
82- [property: string]: unknown | Limit;
82+ [property: string]: unknown;
8383 }
8484
8585 export interface Limit {
8686 maximum?: number;
8787 minimum?: number;
88- [property: string]: unknown | number | number;
88+ [property: string]: unknown;
8989 }
9090
9191 export interface VehicleType {
9292 name?: Name;
9393 width?: Axis;
9494 length?: Axis;
95- [property: string]: unknown | Name | Axis | Axis;
95+ [property: string]: unknown;
9696 }
9797
9898 export type Axis = "X" | "Y" | "Z" | "YZ" | "ZX" | "XY";
Test case

test/inputs/schema/required-draft3.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 longitude: number;
14- [property: string]: mixed | number;
14+ [property: string]: mixed;
1515 };
1616
1717 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 longitude: number;
12- [property: string]: unknown | number;
12+ [property: string]: unknown;
1313 }
1414
1515 // Converts JSON strings to/from your types
Test case

test/inputs/schema/required-non-properties.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -12,7 +12,7 @@
1212 export type TopLevel = {
1313 foo: number;
1414 bar: mixed;
15- [property: string]: mixed | number | mixed;
15+ [property: string]: mixed;
1616 };
1717
1818 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -10,7 +10,7 @@
1010 export interface TopLevel {
1111 foo: number;
1212 bar: unknown;
13- [property: string]: unknown | number | unknown;
13+ [property: string]: unknown;
1414 }
1515
1616 // Converts JSON strings to/from your types
Test case

test/inputs/schema/required.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 longitude: number;
14- [property: string]: mixed | number;
14+ [property: string]: mixed;
1515 };
1616
1717 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 longitude: number;
12- [property: string]: unknown | number;
12+ [property: string]: unknown;
1313 }
1414
1515 // Converts JSON strings to/from your types
Test case

test/inputs/schema/rust-cycle-breaker-union.schema

2 generated files · +4 −4
Mschema-flowdefault / TopLevel.js+2 −2
@@ -12,13 +12,13 @@
1212 export type TopLevel = {
1313 next?: Next;
1414 value: string;
15- [property: string]: mixed | Next | string;
15+ [property: string]: mixed;
1616 };
1717
1818 export type Node = {
1919 next?: Next;
2020 value: string;
21- [property: string]: mixed | Next | string;
21+ [property: string]: mixed;
2222 };
2323
2424 export type Next = null | Node | string;
Mschema-typescriptdefault / TopLevel.ts+2 −2
@@ -10,13 +10,13 @@
1010 export interface TopLevel {
1111 next?: Next;
1212 value: string;
13- [property: string]: unknown | Next | string;
13+ [property: string]: unknown;
1414 }
1515
1616 export interface Node {
1717 next?: Next;
1818 value: string;
19- [property: string]: unknown | Next | string;
19+ [property: string]: unknown;
2020 }
2121
2222 export type Next = null | Node | string;
Test case

test/inputs/schema/schema-constraints.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -12,7 +12,7 @@
1212 export type TopLevel = {
1313 minMaxLength: string;
1414 percent: number;
15- [property: string]: mixed | string | number;
15+ [property: string]: mixed;
1616 };
1717
1818 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -10,7 +10,7 @@
1010 export interface TopLevel {
1111 minMaxLength: string;
1212 percent: number;
13- [property: string]: unknown | string | number;
13+ [property: string]: unknown;
1414 }
1515
1616 // Converts JSON strings to/from your types
Test case

test/inputs/schema/simple-ref.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -14,7 +14,7 @@
1414 */
1515 export type TopLevel = {
1616 next?: TopLevel;
17- [property: string]: mixed | TopLevel;
17+ [property: string]: mixed;
1818 };
1919
2020 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -12,7 +12,7 @@
1212 */
1313 export interface TopLevel {
1414 next?: TopLevel;
15- [property: string]: unknown | TopLevel;
15+ [property: string]: unknown;
1616 }
1717
1818 // Converts JSON strings to/from your types
Test case

test/inputs/schema/strict-optional.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 foo: number | null;
14- [property: string]: mixed | number | null;
14+ [property: string]: mixed;
1515 };
1616
1717 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 foo: number | null;
12- [property: string]: unknown | number | null;
12+ [property: string]: unknown;
1313 }
1414
1515 // Converts JSON strings to/from your types
Test case

test/inputs/schema/top-level-array.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -14,7 +14,7 @@ export type TopLevel = TextClassificationOutputElement[];
1414 export type TextClassificationOutputElement = {
1515 label: string;
1616 score: number;
17- [property: string]: mixed | string | number;
17+ [property: string]: mixed;
1818 };
1919
2020 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -12,7 +12,7 @@ export type TopLevel = TextClassificationOutputElement[];
1212 export interface TextClassificationOutputElement {
1313 label: string;
1414 score: number;
15- [property: string]: unknown | string | number;
15+ [property: string]: unknown;
1616 }
1717
1818 // Converts JSON strings to/from your types
Test case

test/inputs/schema/tuple.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 tuple: Tuple[];
14- [property: string]: mixed | Tuple[];
14+ [property: string]: mixed;
1515 };
1616
1717 export type Tuple = boolean | number;
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 tuple: Tuple[];
12- [property: string]: unknown | Tuple[];
12+ [property: string]: unknown;
1313 }
1414
1515 export type Tuple = boolean | number;
Test case

test/inputs/schema/unevaluated-properties.schema

2 generated files · +6 −6
Mschema-flowdefault / TopLevel.js+3 −3
@@ -11,14 +11,14 @@
1111
1212 export type TopLevel = {
1313 config?: Config;
14- [property: string]: mixed | Config;
14+ [property: string]: mixed;
1515 };
1616
1717 export type Config = {
1818 closed?: Closed;
1919 name?: string;
2020 settings?: { [key: string]: Item[] };
21- [property: string]: mixed | Closed | string | { [key: string]: Item[] };
21+ [property: string]: mixed;
2222 };
2323
2424 export type Closed = mixed[] | boolean | ClosedClass | number | number | null | string;
@@ -29,7 +29,7 @@ export type ClosedClass = {
2929 export type Item = {
3030 key: string;
3131 value: string;
32- [property: string]: mixed | string | string;
32+ [property: string]: mixed;
3333 };
3434
3535 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+3 −3
@@ -9,14 +9,14 @@
99
1010 export interface TopLevel {
1111 config?: Config;
12- [property: string]: unknown | Config;
12+ [property: string]: unknown;
1313 }
1414
1515 export interface Config {
1616 closed?: Closed;
1717 name?: string;
1818 settings?: { [key: string]: Item[] };
19- [property: string]: unknown | Closed | string | { [key: string]: Item[] };
19+ [property: string]: unknown;
2020 }
2121
2222 export type Closed = unknown[] | boolean | object | number | number | null | string;
@@ -24,7 +24,7 @@ export type Closed = unknown[] | boolean | object | number | number | null | str
2424 export interface Item {
2525 key: string;
2626 value: string;
27- [property: string]: unknown | string | string;
27+ [property: string]: unknown;
2828 }
2929
3030 // Converts JSON strings to/from your types
Test case

test/inputs/schema/union-int-double.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -11,7 +11,7 @@
1111
1212 export type TopLevel = {
1313 value: Value;
14- [property: string]: mixed | Value;
14+ [property: string]: mixed;
1515 };
1616
1717 export type Value = number | string;
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -9,7 +9,7 @@
99
1010 export interface TopLevel {
1111 value: Value;
12- [property: string]: unknown | Value;
12+ [property: string]: unknown;
1313 }
1414
1515 export type Value = number | string;
Test case

test/inputs/schema/union.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -15,7 +15,7 @@ export type TopLevelElement = {
1515 one?: number;
1616 two: boolean;
1717 three?: number;
18- [property: string]: mixed | number | boolean | number;
18+ [property: string]: mixed;
1919 };
2020
2121 // Converts JSON strings to/from your types
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -13,7 +13,7 @@ export interface TopLevelElement {
1313 one?: number;
1414 two: boolean;
1515 three?: number;
16- [property: string]: unknown | number | boolean | number;
16+ [property: string]: unknown;
1717 }
1818
1919 // Converts JSON strings to/from your types
Test case

test/inputs/schema/uuid.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -16,7 +16,7 @@ export type TopLevel = {
1616 one: string;
1717 optional?: string;
1818 unionWithEnum: UnionWithEnumUnion;
19- [property: string]: mixed | (null | string)[] | string[] | null | string | string | string | UnionWithEnumUnion;
19+ [property: string]: mixed;
2020 };
2121
2222 export type UnionWithEnumUnion = UnionWithEnumEnum | string;
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -14,7 +14,7 @@ export interface TopLevel {
1414 one: string;
1515 optional?: string;
1616 unionWithEnum: UnionWithEnumUnion;
17- [property: string]: unknown | (null | string)[] | string[] | null | string | string | string | UnionWithEnumUnion;
17+ [property: string]: unknown;
1818 }
1919
2020 export type UnionWithEnumUnion = UnionWithEnumEnum | string;
Test case

test/inputs/schema/vega-lite.schema

2 generated files · +2 −2
Mschema-flowdefault / TopLevel.js+1 −1
@@ -1800,7 +1800,7 @@ export type RangeConfig = {
18001800 * Default range palette for the `shape` channel.
18011801 */
18021802 symbol?: string[];
1803- [property: string]: RangeConfigValue | Category | Category | Category | Category | Category | string[];
1803+ [property: string]: RangeConfigValue | Category | string[] | void;
18041804 };
18051805
18061806 /**
Mschema-typescriptdefault / TopLevel.ts+1 −1
@@ -1706,7 +1706,7 @@ export interface RangeConfig {
17061706 * Default range palette for the `shape` channel.
17071707 */
17081708 symbol?: string[];
1709- [property: string]: RangeConfigValue | Category | Category | Category | Category | Category | string[];
1709+ [property: string]: RangeConfigValue | Category | string[] | undefined;
17101710 }
17111711
17121712 /**
No generated files match these filters.