Skip to content

Commit

Permalink
Fix bug where single pattern property objects did not honor strictInd…
Browse files Browse the repository at this point in the history
…exSignatures

Signed-off-by: Yoriyasu Yano <[email protected]>
  • Loading branch information
yorinasub17 committed Nov 18, 2023
1 parent e52c2a4 commit afa8c56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ function parseSchema(
const comment = `This interface was referenced by \`${parentSchemaName}\`'s JSON-Schema definition
via the \`patternProperty\` "${key}".`
ast.comment = ast.comment ? `${ast.comment}\n\n${comment}` : comment
ast.keyName = singlePatternProperty ? '[k: string]' : key
return {
ast,
isPatternProperty: !singlePatternProperty,
Expand Down

0 comments on commit afa8c56

Please sign in to comment.