Skip to content

Commit

Permalink
add null type to schema-definition resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
omermecitoglu committed Jun 15, 2024
1 parent 4cd20db commit 2ee8de4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/resolvers/schema-definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export function resolveSchema(definition?: SchemaObject): string {
}
case "number": return "number";
case "boolean": return "boolean";
case "null": return "null";
case "array": {
if (definition.maxItems && definition.maxItems === definition.minItems) {
return resolveTuple(definition.items, definition.maxItems);
Expand Down

0 comments on commit 2ee8de4

Please sign in to comment.