Skip to content

Commit

Permalink
fix: use correct real_name in storyblok ref arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
julrich committed Oct 24, 2024
1 parent 2e80b56 commit 55e8e9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@kickstartds/jsonschema2storyblok",
"comment": "use correct real_name in refArrays",
"type": "patch"
}
],
"packageName": "@kickstartds/jsonschema2storyblok"
}
2 changes: 1 addition & 1 deletion tools/jsonschema2storyblok/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ function processRefArray({
id: blokId++,
schema: createBlokSchema(field.objectFields),
is_nestable: true,
real_name: toPascalCase(name),
real_name: toPascalCase(field.key),
color: colors[field.key] || '#05566a',
icon: icons[field.key] || 'block-wallet',
component_group_uuid: componentGroups[name],
Expand Down

0 comments on commit 55e8e9b

Please sign in to comment.