Skip to content

Commit be9545d

Browse files
committed
Add void builtin type
1 parent 97e7b0c commit be9545d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

compiler/src/steps/validate-model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export default async function validateModel (apiModel: model.Model, restSpec: Ma
149149

150150
// Register builtin types
151151
for (const name of [
152-
'string', 'boolean', 'number', 'null'
152+
'string', 'boolean', 'number', 'null', 'void'
153153
]) {
154154
const typeName = {
155155
namespace: '_builtins',

output/schema/validation-errors.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"async_search.get": {
4040
"request": [],
4141
"response": [
42-
"type_alias definition _spec_utils:Void / instance_of - No type definition for '_builtins:void'",
4342
"type_alias definition _global.search._types:Suggest - A tagged union should not have generic parameters",
4443
"type_alias definition _global.search._types:Suggest / instance_of / Generics / instance_of - No type definition for '_global.search._types.Suggest:TDocument'",
4544
"type_alias definition _global.search._types:Suggest - Expected 1 generic parameters but got 0"

0 commit comments

Comments
 (0)