Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 621 Bytes

File metadata and controls

25 lines (16 loc) · 621 Bytes

@iracing-data/api-schema

Zod schemas for the iRacing /data API responses and requests. These definitions power code generation for clients and routers across the monorepo.

Installation

pnpm add @iracing-data/api-schema

Usage

import { IRacingGetCarResponseSchema } from "@iracing-data/api-schema";

const result = IRacingGetCarResponseSchema.parse(apiResponse);

Use the schemas directly for runtime validation or feed them into helpers like @iracing-data/api-schema-to-openapi for OpenAPI generation.

Development

pnpm --filter @iracing-data/api-schema test