Skip to content

Commit 68a0862

Browse files
committed
Fix snapshot repository definitions
1 parent 367f257 commit 68a0862

File tree

5 files changed

+997
-167
lines changed

5 files changed

+997
-167
lines changed

compiler/src/model/build-model.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ function compileClassOrInterfaceDeclaration (declaration: ClassDeclaration | Int
286286
)
287287
assert(
288288
(bodyMember as PropertySignature).getJsDocs(),
289-
!type.path.map(p => p.name).concat(type.query.map(p => p.name)).includes(tags.codegen_name),
289+
!type.path.map(p => p.codegenName ?? p.name).concat(type.query.map(p => p.codegenName ?? p.name))
290+
.includes(tags.codegen_name),
290291
`The codegen_name '${tags.codegen_name}' already exists as a property in the path or query.`
291292
)
292293
type.body = {

0 commit comments

Comments
 (0)