Skip to content

Commit 0e1ac96

Browse files
author
alex.eijssen
committed
Adding optionals to dataset parser.
Signed-off-by: alex.eijssen <alex.eijssen@energyessentials.nl>
1 parent 7ca4c23 commit 0e1ac96

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ui/src/parsers/feastSavedDataset.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ const FeastSavedDatasetSchema = z.object({
88
storage: z.object({
99
fileStorage: z.object({
1010
fileFormat: z.object({
11-
parquestFormat: z.object({}).optional(),
12-
}),
11+
parquetFormat: z.object({}).optional(),
12+
}).optional(),
1313
fileUrl: z.string(),
14-
}),
15-
}),
14+
}).optional(),
15+
}).optional(),
1616
featureService: z
1717
.object({
1818
spec: z.object({
@@ -21,7 +21,7 @@ const FeastSavedDatasetSchema = z.object({
2121
})
2222
.transform((obj) => {
2323
return obj.spec.name;
24-
}),
24+
}).optional(),
2525
profile: z.string().optional(),
2626
}),
2727
meta: z.object({

0 commit comments

Comments
 (0)