We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5da06c commit 62c592fCopy full SHA for 62c592f
1 file changed
lib/process-schema.ts
@@ -118,6 +118,7 @@ export function schemaToType(
118
119
const nullable = 'nullable' in schemaObject && schemaObject.nullable;
120
121
+ // not nullable, and only one type, so just return that type
122
if (!nullable && types.length === 1 && types[0]) {
123
return {
124
name,
@@ -138,6 +139,8 @@ export function schemaToType(
138
139
Writers.unionType(...types),
140
};
141
}
142
+
143
+ // add null
144
145
146
hasQuestionToken,
0 commit comments