Skip to content

Commit

Permalink
fix: Typo for patternProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
ksentak committed Oct 29, 2024
1 parent e2a2669 commit c88334c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macrofier/types.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ function getSchemaType(schema, module, { destination, templateDir = 'types', lin
}

template = getTemplate(path.join(templateDir, 'patternProperties'))
if (schema.paternProperties && template ) {
if (schema.patternProperties && template ) {
return insertSchemaMacros(getTemplate(path.join(templateDir, 'Title')), schema, module, { name: theTitle, recursive: false })
} else {
// TODO: this assumes that when type is an array of types, that it's one other primative & 'null', which isn't necessarily true.
Expand Down

0 comments on commit c88334c

Please sign in to comment.