Skip to content

Commit ccc5178

Browse files
committed
fix: by default don't hide fields
1 parent 83bee64 commit ccc5178

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@kickstartds/jsonschema-utils",
5+
"comment": "dont hide fields by default",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@kickstartds/jsonschema-utils"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@kickstartds/storyblok-example",
5+
"comment": "update tooling",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@kickstartds/storyblok-example"
10+
}

examples/storyblok/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async function convertKds(): Promise<void> {
7272
const customGlob = `${packagePath}/(dist|cms)/**/*.(schema|definitions|interface).json`;
7373

7474
const ajv = getSchemaRegistry();
75-
const schemaIds = await processSchemaGlob(customGlob, ajv);
75+
const schemaIds = await processSchemaGlob(customGlob, ajv, { hideCmsFields: true });
7676
const customSchemaIds = getCustomSchemaIds(schemaIds);
7777

7878
const convertedObjects = convert({

tools/jsonschema-utils/src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ export const defaultProcessingOptions: IProcessingOptions = {
613613
inlineReferences: true,
614614
addExplicitAnyOfs: true,
615615
replaceExamples: true,
616-
hideCmsFields: true
616+
hideCmsFields: false
617617
};
618618

619619
export async function processSchemaGlob(

0 commit comments

Comments
 (0)