Skip to content

Commit 5ea1200

Browse files
committed
compiler: propagate generics in case someone want to have a generic exception
1 parent 6b4b57f commit 5ea1200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/steps/validate-model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,10 +502,10 @@ export default async function validateModel (apiModel: model.Model, restSpec: Ma
502502
for (const ex of typeDef.exceptions) {
503503
switch (ex.body.kind) {
504504
case 'properties':
505-
validateProperties(ex.body.properties, new Set<string>(), new Set<string>())
505+
validateProperties(ex.body.properties, openGenerics, new Set<string>())
506506
break
507507
case 'value':
508-
validateValueOf(ex.body.value, new Set<string>())
508+
validateValueOf(ex.body.value, openGenerics)
509509
break
510510
case 'no_body':
511511
// Nothing to validate

0 commit comments

Comments
 (0)