Skip to content

FeatureSchema

const FeatureSchema: ZodObject<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; geometry: ZodNullable<ZodTypeAny>; id: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>; properties: ZodNullable<ZodRecord<ZodString, ZodAny>>; type: ZodLiteral<"Feature">; }, "passthrough", ZodTypeAny, objectOutputType<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; geometry: ZodNullable<ZodTypeAny>; id: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>; properties: ZodNullable<ZodRecord<ZodString, ZodAny>>; type: ZodLiteral<"Feature">; }, ZodTypeAny, "passthrough">, objectInputType<{ bbox: ZodOptional<ZodArray<ZodNumber, "many">>; geometry: ZodNullable<ZodTypeAny>; id: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>; properties: ZodNullable<ZodRecord<ZodString, ZodAny>>; type: ZodLiteral<"Feature">; }, ZodTypeAny, "passthrough">>

Defined in: packages/core/src/schemas/geojson.schema.ts:209

A GeoJSON Feature: a geometry (or null), a properties object (or null), and optional id/bbox.