Skip to content

Commit da482cd

Browse files
committed
fix: default ignore schema validation to true
1 parent 4214e78 commit da482cd

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/commands/content-item/sync.service.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('sync.service', () => {
5757
expect(hub.related.jobs.createDeepSyncJob).toHaveBeenCalledWith({
5858
label: `dc-cli content item: sync service test`,
5959
forceSync: false,
60-
ignoreSchemaValidation: false,
60+
ignoreSchemaValidation: true,
6161
destinationHubId: DEST_HUB_ID,
6262
input: { rootContentItemIds: [CONTENT_ITEM_ID] }
6363
});
@@ -81,7 +81,7 @@ describe('sync.service', () => {
8181
expect(hub.related.jobs.createDeepSyncJob).toHaveBeenCalledWith({
8282
label: `dc-cli content item: sync service test`,
8383
forceSync: false,
84-
ignoreSchemaValidation: false,
84+
ignoreSchemaValidation: true,
8585
destinationHubId: DEST_HUB_ID,
8686
input: { rootContentItemIds: [CONTENT_ITEM_ID] }
8787
});

src/commands/content-item/sync.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ export class ContentItemSyncService {
1919
action: (job: Job) => void,
2020
options: { ignoreSchemaValidation?: boolean; forceSync?: boolean }
2121
): void {
22+
console.log(options.ignoreSchemaValidation, options.ignoreSchemaValidation ?? true);
2223
this.queue.add(async () => {
2324
const createSyncJob = await hub.related.jobs.createDeepSyncJob(
2425
new CreateDeepSyncJobRequest({
2526
label: `dc-cli content item: ${contentItem.label}`,
26-
ignoreSchemaValidation: options.ignoreSchemaValidation || false,
27+
ignoreSchemaValidation: options.ignoreSchemaValidation ?? true,
2728
forceSync: options.forceSync || false,
2829
destinationHubId,
2930
input: { rootContentItemIds: [contentItem.id] }

0 commit comments

Comments
 (0)