Skip to content

Commit aa306dd

Browse files
author
Stefan Terdell
committed
Add failing test case for boolean object props
1 parent f151f44 commit aa306dd

File tree

1 file changed

+17
-0
lines changed
  • packages/openapi-typescript/test/transform/schema-object

1 file changed

+17
-0
lines changed

packages/openapi-typescript/test/transform/schema-object/object.test.ts

+17
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,23 @@ describe("transformSchemaObject > object", () => {
2828
// options: DEFAULT_OPTIONS,
2929
},
3030
],
31+
[
32+
"property > boolean",
33+
{
34+
given: {
35+
type: "object",
36+
required: ["truthy", "falsy"],
37+
properties: {
38+
truthy: true,
39+
falsy: false,
40+
},
41+
},
42+
want: `{
43+
truthy: unknown;
44+
falsy: never;
45+
}`,
46+
},
47+
],
3148
[
3249
"empty",
3350
{

0 commit comments

Comments
 (0)