forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeastRegistry.ts
More file actions
22 lines (19 loc) · 935 Bytes
/
Copy pathfeastRegistry.ts
File metadata and controls
22 lines (19 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { z } from "zod";
import { FeastDatasourceSchema } from "./feastDatasources";
import { FeastEntitySchema } from "./feastEntities";
import { FeastFeatureServiceSchema } from "./feastFeatureServices";
import { FeastFeatureViewSchema } from "./feastFeatureViews";
import { FeastSavedDatasetSchema } from "./feastSavedDataset";
import { FeastODFVSchema } from "./feastODFVS";
const FeastRegistrySchema = z.object({
project: z.string(),
dataSources: z.array(FeastDatasourceSchema).optional(),
entities: z.array(FeastEntitySchema).optional(),
featureViews: z.array(FeastFeatureViewSchema).optional(),
onDemandFeatureViews: z.array(FeastODFVSchema).optional(),
featureServices: z.array(FeastFeatureServiceSchema).optional(),
savedDatasets: z.array(FeastSavedDatasetSchema).optional(),
});
type FeastRegistryType = z.infer<typeof FeastRegistrySchema>;
export { FeastRegistrySchema };
export type { FeastRegistryType };