Skip to content

Commit

Permalink
feature: inlining finalization
Browse files Browse the repository at this point in the history
  • Loading branch information
julrich committed Jul 9, 2024
1 parent 4ca40aa commit 07e21bc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@kickstartds/jsonschema-utils",
"comment": "trigger release",
"type": "patch"
}
],
"packageName": "@kickstartds/jsonschema-utils"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@kickstartds/jsonschema2stackbit",
"comment": "make inlined fields movable",
"type": "patch"
}
],
"packageName": "@kickstartds/jsonschema2stackbit"
}
1 change: 1 addition & 0 deletions tools/jsonschema-utils/COPYRIGHT.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ licensed under the Apache License, Version 2.0
http://www.apache.org/licenses/LICENSE-2.0) or the MIT license,
([`LICENSE-MIT`](LICENSE-MIT) or http://opensource.org/licenses/MIT), at your
option.

2 changes: 1 addition & 1 deletion tools/jsonschema2stackbit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export function convert({
parent.unshift({
...field,
name: `${value.name}__${field.name}`,
group: value.name
group: field.group && field.group === 'content' ? undefined : field.group || value.name
});
}
parent.splice(parent.indexOf(schema), 1);
Expand Down

0 comments on commit 07e21bc

Please sign in to comment.