mbus-backend
    Preparing search index...

    Variable DirectionInstructionSchemaConst

    DirectionInstructionSchema: ZodDiscriminatedUnion<
        [
            ZodObject<{ type: ZodLiteral<"depart"> }, $strip>,
            ZodObject<
                {
                    direction: ZodEnum<
                        {
                            left: "left";
                            right: "right";
                            sharp_left: "sharp_left";
                            sharp_right: "sharp_right";
                            slight_left: "slight_left";
                            slight_right: "slight_right";
                        },
                    >;
                    type: ZodLiteral<"turn">;
                },
                $strip,
            >,
            ZodObject<{ type: ZodLiteral<"continue"> }, $strip>,
            ZodObject<
                { street: ZodNullable<ZodString>; type: ZodLiteral<"cross"> },
                $strip,
            >,
            ZodObject<{ type: ZodLiteral<"arrive"> }, $strip>,
        ],
        "type",
    > = ...

    What to tell the user to do at a step.

    The OpenAPI discriminator makes generated clients pick the variant by type; without it, swagger_parser tries each variant in order and decodes everything as the first one that fits.