Skip to content

Commit ac0290e

Browse files
committed
fix: update reverseSafeSchema to assign type directly; adjust test for expected schema output
1 parent 69c179c commit ac0290e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/sdk/src/utils/data.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@ export const reverseSafeSchema = (
279279
}
280280

281281
const finalKey = keys[keys.length - 1];
282-
current[finalKey] =
283-
type === 'bool' ? false : type === 'f64' ? 1 : type;
282+
current[finalKey] = type;
284283

285284
return acc;
286285
}, {});

packages/sdk/tests/e2e/dataProtectorCore/getProtectedData.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ describe('dataProtectorCore.getProtectedData()', () => {
129129
expect(result[0].schema).toEqual({
130130
email: 'string',
131131
tag: {
132-
size: 1,
132+
size: 'f64',
133133
},
134134
});
135135
});

0 commit comments

Comments
 (0)