Skip to content

Commit

Permalink
Adding optionals to dataset parser.
Browse files Browse the repository at this point in the history
Signed-off-by: alex.eijssen <alex.eijssen@energyessentials.nl>
  • Loading branch information
alex.eijssen committed Aug 23, 2022
1 parent 7ca4c23 commit 0e1ac96
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/src/parsers/feastSavedDataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const FeastSavedDatasetSchema = z.object({
storage: z.object({
fileStorage: z.object({
fileFormat: z.object({
parquestFormat: z.object({}).optional(),
}),
parquetFormat: z.object({}).optional(),
}).optional(),
fileUrl: z.string(),
}),
}),
}).optional(),
}).optional(),
featureService: z
.object({
spec: z.object({
Expand All @@ -21,7 +21,7 @@ const FeastSavedDatasetSchema = z.object({
})
.transform((obj) => {
return obj.spec.name;
}),
}).optional(),
profile: z.string().optional(),
}),
meta: z.object({
Expand Down

0 comments on commit 0e1ac96

Please sign in to comment.