Skip to content

Commit 6a53282

Browse files
committed
fix path validation
1 parent d19d58b commit 6a53282

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/sdk/src/lib/dataProtectorSharing/consumeProtectedData.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
throwIfMissing,
1818
validateOnStatusUpdateCallback,
1919
positiveNumberSchema,
20+
stringSchema,
2021
} from '../../utils/validators.js';
2122
import {
2223
ConsumeProtectedDataParams,
@@ -56,7 +57,7 @@ export const consumeProtectedData = async ({
5657
const vMaxPrice = positiveNumberSchema()
5758
.label('maxPrice')
5859
.validateSync(maxPrice);
59-
const vPath = string().label('path').validateSync(path);
60+
const vPath = stringSchema().label('path').validateSync(path);
6061
let vApp = addressOrEnsSchema().required().label('app').validateSync(app);
6162
let vWorkerpool = addressOrEnsSchema()
6263
.label('workerpool')

0 commit comments

Comments
 (0)