Generated-output differences

quicktype output changed between the PR base and tested PR merge revisions.
← Back to the pull request
28test cases
28files differ
28modified
0new
0deleted
75changed lines
+40 −35insertions / deletions
Base 7cc8d8a58955a00fa24b69cb53f71f3a32fc4f5e · PR merge 01c11820dc0d250c2d238eee769da7eb496e029c · Head fb6a3008537f52af28996f73b833ba50a30296d7 · raw patch
Test case

test/inputs/json/misc/0779f.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -29,7 +29,7 @@ export class Status extends S.Class<Status>("Status")({
2929
3030 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
3131 "city": S.String,
32- "delay": S.String,
32+ "delay": S.Literal("true", "false"),
3333 "IATA": S.String,
3434 "ICAO": S.String,
3535 "name": S.String,
Test case

test/inputs/json/misc/16bc5.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -21,7 +21,7 @@ export class Location extends S.Class<Location>("Location")({
2121 }) {}
2222
2323 export class Guid extends S.Class<Guid>("Guid")({
24- "isPermaLink": S.String,
24+ "isPermaLink": S.Literal("true", "false"),
2525 }) {}
2626
2727 export class Forecast extends S.Class<Forecast>("Forecast")({
Test case

test/inputs/json/misc/24f52.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -29,7 +29,7 @@ export class Status extends S.Class<Status>("Status")({
2929
3030 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
3131 "city": S.String,
32- "delay": S.String,
32+ "delay": S.Literal("true", "false"),
3333 "IATA": S.String,
3434 "ICAO": S.String,
3535 "name": S.String,
Test case

test/inputs/json/misc/262f0.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -28,7 +28,7 @@ export class Location extends S.Class<Location>("Location")({
2828 }) {}
2929
3030 export class Guid extends S.Class<Guid>("Guid")({
31- "isPermaLink": S.String,
31+ "isPermaLink": S.Literal("true", "false"),
3232 }) {}
3333
3434 export class Forecast extends S.Class<Forecast>("Forecast")({
Test case

test/inputs/json/misc/26c9c.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -106,7 +106,7 @@ export class Grant extends S.Class<Grant>("Grant")({
106106
107107 export class Format extends S.Class<Format>("Format")({
108108 "align": S.optional(S.NullOr(S.String)),
109- "noCommas": S.optional(S.NullOr(S.String)),
109+ "noCommas": S.optional(S.NullOr(S.Literal("true", "false"))),
110110 "precisionStyle": S.optional(S.NullOr(S.String)),
111111 "view": S.optional(S.NullOr(S.String)),
112112 }) {}
Test case

test/inputs/json/misc/36d5d.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -29,7 +29,7 @@ export class Status extends S.Class<Status>("Status")({
2929
3030 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
3131 "city": S.String,
32- "delay": S.String,
32+ "delay": S.Literal("true", "false"),
3333 "IATA": S.String,
3434 "ICAO": S.String,
3535 "name": S.String,
Test case

test/inputs/json/misc/3a6b3.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -29,7 +29,7 @@ export class Status extends S.Class<Status>("Status")({
2929
3030 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
3131 "city": S.String,
32- "delay": S.String,
32+ "delay": S.Literal("true", "false"),
3333 "IATA": S.String,
3434 "ICAO": S.String,
3535 "name": S.String,
Test case

test/inputs/json/misc/3f1ce.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -26,7 +26,7 @@ export class Location extends S.Class<Location>("Location")({
2626 }) {}
2727
2828 export class Guid extends S.Class<Guid>("Guid")({
29- "isPermaLink": S.String,
29+ "isPermaLink": S.Literal("true", "false"),
3030 }) {}
3131
3232 export class Forecast extends S.Class<Forecast>("Forecast")({
Test case

test/inputs/json/misc/4c547.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -21,7 +21,7 @@ export class Location extends S.Class<Location>("Location")({
2121 }) {}
2222
2323 export class Guid extends S.Class<Guid>("Guid")({
24- "isPermaLink": S.String,
24+ "isPermaLink": S.Literal("true", "false"),
2525 }) {}
2626
2727 export class Forecast extends S.Class<Forecast>("Forecast")({
Test case

test/inputs/json/misc/5dd0d.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -29,7 +29,7 @@ export class Status extends S.Class<Status>("Status")({
2929
3030 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
3131 "city": S.String,
32- "delay": S.String,
32+ "delay": S.Literal("true", "false"),
3333 "IATA": S.String,
3434 "ICAO": S.String,
3535 "name": S.String,
Test case

test/inputs/json/misc/5eb20.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -29,7 +29,7 @@ export class Status extends S.Class<Status>("Status")({
2929
3030 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
3131 "city": S.String,
32- "delay": S.String,
32+ "delay": S.Literal("true", "false"),
3333 "IATA": S.String,
3434 "ICAO": S.String,
3535 "name": S.String,
Test case

test/inputs/json/misc/61b66.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -29,7 +29,7 @@ export class Status extends S.Class<Status>("Status")({
2929
3030 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
3131 "city": S.String,
32- "delay": S.String,
32+ "delay": S.Literal("true", "false"),
3333 "IATA": S.String,
3434 "ICAO": S.String,
3535 "name": S.String,
Test case

test/inputs/json/misc/6dec6.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -28,7 +28,7 @@ export class Location extends S.Class<Location>("Location")({
2828 }) {}
2929
3030 export class Guid extends S.Class<Guid>("Guid")({
31- "isPermaLink": S.String,
31+ "isPermaLink": S.Literal("true", "false"),
3232 }) {}
3333
3434 export class Forecast extends S.Class<Forecast>("Forecast")({
Test case

test/inputs/json/misc/7d722.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -29,7 +29,7 @@ export class Status extends S.Class<Status>("Status")({
2929
3030 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
3131 "city": S.String,
32- "delay": S.String,
32+ "delay": S.Literal("true", "false"),
3333 "IATA": S.String,
3434 "ICAO": S.String,
3535 "name": S.String,
Test case

test/inputs/json/misc/88130.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -21,7 +21,7 @@ export class Location extends S.Class<Location>("Location")({
2121 }) {}
2222
2323 export class Guid extends S.Class<Guid>("Guid")({
24- "isPermaLink": S.String,
24+ "isPermaLink": S.Literal("true", "false"),
2525 }) {}
2626
2727 export class Forecast extends S.Class<Forecast>("Forecast")({
Test case

test/inputs/json/misc/9929c.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -21,7 +21,7 @@ export class Location extends S.Class<Location>("Location")({
2121 }) {}
2222
2323 export class Guid extends S.Class<Guid>("Guid")({
24- "isPermaLink": S.String,
24+ "isPermaLink": S.Literal("true", "false"),
2525 }) {}
2626
2727 export class Forecast extends S.Class<Forecast>("Forecast")({
Test case

test/inputs/json/misc/a1eca.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -21,7 +21,7 @@ export class Location extends S.Class<Location>("Location")({
2121 }) {}
2222
2323 export class Guid extends S.Class<Guid>("Guid")({
24- "isPermaLink": S.String,
24+ "isPermaLink": S.Literal("true", "false"),
2525 }) {}
2626
2727 export class Forecast extends S.Class<Forecast>("Forecast")({
Test case

test/inputs/json/misc/a71df.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -29,7 +29,7 @@ export class Status extends S.Class<Status>("Status")({
2929
3030 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
3131 "city": S.String,
32- "delay": S.String,
32+ "delay": S.Literal("true", "false"),
3333 "IATA": S.String,
3434 "ICAO": S.String,
3535 "name": S.String,
Test case

test/inputs/json/misc/c0a3a.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -29,7 +29,7 @@ export class Status extends S.Class<Status>("Status")({
2929
3030 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
3131 "city": S.String,
32- "delay": S.String,
32+ "delay": S.Literal("true", "false"),
3333 "IATA": S.String,
3434 "ICAO": S.String,
3535 "name": S.String,
Test case

test/inputs/json/misc/ccd18.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -29,7 +29,7 @@ export class Status extends S.Class<Status>("Status")({
2929
3030 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
3131 "city": S.String,
32- "delay": S.String,
32+ "delay": S.Literal("true", "false"),
3333 "IATA": S.String,
3434 "ICAO": S.String,
3535 "name": S.String,
Test case

test/inputs/json/misc/cd238.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -29,7 +29,7 @@ export class Status extends S.Class<Status>("Status")({
2929
3030 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
3131 "city": S.String,
32- "delay": S.String,
32+ "delay": S.Literal("true", "false"),
3333 "IATA": S.String,
3434 "ICAO": S.String,
3535 "name": S.String,
Test case

test/inputs/json/misc/cf0d8.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -21,7 +21,7 @@ export class Location extends S.Class<Location>("Location")({
2121 }) {}
2222
2323 export class Guid extends S.Class<Guid>("Guid")({
24- "isPermaLink": S.String,
24+ "isPermaLink": S.Literal("true", "false"),
2525 }) {}
2626
2727 export class Forecast extends S.Class<Forecast>("Forecast")({
Test case

test/inputs/json/misc/dbfb3.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -27,7 +27,7 @@ export class Location extends S.Class<Location>("Location")({
2727 }) {}
2828
2929 export class Guid extends S.Class<Guid>("Guid")({
30- "isPermaLink": S.String,
30+ "isPermaLink": S.Literal("true", "false"),
3131 }) {}
3232
3333 export class Forecast extends S.Class<Forecast>("Forecast")({
Test case

test/inputs/json/misc/df957.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -21,7 +21,7 @@ export class Location extends S.Class<Location>("Location")({
2121 }) {}
2222
2323 export class Guid extends S.Class<Guid>("Guid")({
24- "isPermaLink": S.String,
24+ "isPermaLink": S.Literal("true", "false"),
2525 }) {}
2626
2727 export class Forecast extends S.Class<Forecast>("Forecast")({
Test case

test/inputs/json/misc/e2915.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -26,7 +26,7 @@ export class Location extends S.Class<Location>("Location")({
2626 }) {}
2727
2828 export class Guid extends S.Class<Guid>("Guid")({
29- "isPermaLink": S.String,
29+ "isPermaLink": S.Literal("true", "false"),
3030 }) {}
3131
3232 export class Forecast extends S.Class<Forecast>("Forecast")({
Test case

test/inputs/json/misc/fcca3.json

1 generated file · +1 −1
Mtypescript-effect-schemadefault / TopLevel.ts+1 −1
@@ -135,7 +135,7 @@ export class Grant extends S.Class<Grant>("Grant")({
135135
136136 export class Format extends S.Class<Format>("Format")({
137137 "align": S.optional(S.NullOr(S.String)),
138- "noCommas": S.optional(S.NullOr(S.String)),
138+ "noCommas": S.optional(S.NullOr(S.Literal("true", "false"))),
139139 "precisionStyle": S.optional(S.NullOr(S.String)),
140140 }) {}
Test case

test/inputs/json/priority/blns-object.json

1 generated file · +2 −2
Mtypescript-effect-schemadefault / TopLevel.ts+2 −2
@@ -173,7 +173,7 @@ export class C extends S.Class<C>("C")({
173173 "<title onpropertychange=javascript:alert(1)></title><title title=>": S.String,
174174 "# treated as whitespace in some contexts.": S.String,
175175 "#\tTrick Unicode": S.String,
176- "true": S.String,
176+ "true": S.Literal("true", "false"),
177177 "undefined": S.String,
178178 "# Unicode additional control characters: all of the characters with": S.String,
179179 "#\tUnicode Subscript/Superscript/Accents": S.String,
@@ -370,7 +370,7 @@ export class A extends S.Class<A>("A")({
370370 "1'000'000.00": S.String,
371371 "1E02": S.String,
372372 "';alert(123);t='": S.String,
373- "false": S.String,
373+ "false": S.Literal("true", "false"),
374374 "<a href=java&#1&#2&#3&#4&#5&#6&#7&#8&#11&#12script:javascript:alert(1)>XXX</a>": S.String,
375375 "<a href=\"javascript\\x09:javascript:alert(1)\" id=\"fuzzelement1\">test</a>": S.String,
376376 "<a href=\"javascript\\x0A:javascript:alert(1)\" id=\"fuzzelement1\">test</a>": S.String,
Test case

test/inputs/schema/bool-string.schema

1 generated file · +12 −7
Mschema-typescript-effect-schemadefault / TopLevel.ts+12 −7
@@ -1,12 +1,17 @@
11 import * as S from "effect/Schema";
22
33
4+export const UnionWithBoolAndEnumEnum = S.Literal(
5+ "foo",
6+);
7+export type UnionWithBoolAndEnumEnum = S.Schema.Type<typeof UnionWithBoolAndEnumEnum>;
8+
49 export class TopLevel extends S.Class<TopLevel>("TopLevel")({
5- "arrNullable": S.optional(S.NullOr(S.Array(S.NullOr(S.String)))),
6- "arrOne": S.optional(S.NullOr(S.Array(S.String))),
7- "nullable": S.NullOr(S.String),
8- "one": S.String,
9- "optional": S.optional(S.NullOr(S.String)),
10- "unionWithBool": S.Union(S.Boolean, S.String),
11- "unionWithBoolAndEnum": S.Union(S.Boolean, S.String),
10+ "arrNullable": S.optional(S.NullOr(S.Array(S.NullOr(S.Literal("true", "false"))))),
11+ "arrOne": S.optional(S.NullOr(S.Array(S.Literal("true", "false")))),
12+ "nullable": S.NullOr(S.Literal("true", "false")),
13+ "one": S.Literal("true", "false"),
14+ "optional": S.optional(S.NullOr(S.Literal("true", "false"))),
15+ "unionWithBool": S.Union(S.Boolean, S.transform(S.Literal("true", "false"), S.Boolean, { strict: true, decode: (value) => value === "true", encode: (value) => value ? "true" : "false" })),
16+ "unionWithBoolAndEnum": S.Union(S.Boolean, S.transform(S.Literal("true", "false"), S.Boolean, { strict: true, decode: (value) => value === "true", encode: (value) => value ? "true" : "false" }), UnionWithBoolAndEnumEnum),
1217 }) {}
No generated files match these filters.