Skip to content

Commit

Permalink
handlebars-templates: Add isAny helper for the ANY type
Browse files Browse the repository at this point in the history
  • Loading branch information
karlvr committed Aug 22, 2024
1 parent 0758c0a commit 50f5d88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-ants-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openapi-generator-plus/handlebars-templates": minor
---

Add isAny helper for the ANY type
1 change: 1 addition & 0 deletions packages/handlebars-templates/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ export function registerStandardHelpers(hbs: typeof Handlebars, { generator, log
registerPropertyTypeHelper('isTime', CodegenSchemaType.TIME, hbs)
registerPropertyTypeHelper('isBinary', CodegenSchemaType.BINARY, hbs)
registerPropertyTypeHelper('isFile', CodegenSchemaType.FILE, hbs)
registerPropertyTypeHelper('isAny', CodegenSchemaType.ANY, hbs)

/* Content type helpers */
hbs.registerHelper('isContentJson', function(value: CodegenContent): boolean {
Expand Down

0 comments on commit 50f5d88

Please sign in to comment.