From 08e26f6bafbfb5c0506b311f2505e499b216ddde Mon Sep 17 00:00:00 2001 From: Keaton Sentak Date: Thu, 29 Aug 2024 14:05:22 -0400 Subject: [PATCH] fix: Revert debug change --- src/macrofier/types.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macrofier/types.mjs b/src/macrofier/types.mjs index 8aad2d6b..cba78534 100644 --- a/src/macrofier/types.mjs +++ b/src/macrofier/types.mjs @@ -350,8 +350,8 @@ const insertObjectMacros = (content, schema, module, title, property, options) = const description = getSchemaDescription(prop, module) let replacedTemplate = template .replace(/(^\s+)/g, '$1'.repeat(options2.level)) - .replace(/\$\{property\}/g, name) - .replace(/\$\{Property\}/g, capitalize(name)) + .replace(/\$\{property\}/g, safePropName(name)) + .replace(/\$\{Property\}/g, capitalize(safePropName(name))) .replace(/\$\{parent\.title\}/g, title) .replace(/\$\{title\}/g, type) .replace(/\$\{shape\}/g, schemaShape)