diff --git a/packages/openapi-to-ts-client/fixtures/generated/firecrawl-client.ts b/packages/openapi-to-ts-client/fixtures/generated/firecrawl-client.ts index 4d9f4d1f..d72e4389 100644 --- a/packages/openapi-to-ts-client/fixtures/generated/firecrawl-client.ts +++ b/packages/openapi-to-ts-client/fixtures/generated/firecrawl-client.ts @@ -1,3 +1,6 @@ +/* eslint-disable unicorn/no-unreadable-iife */ +/* eslint-disable unicorn/no-array-reduce */ + /** * This file was auto-generated from an OpenAPI spec. */ @@ -9,6 +12,10 @@ import { z } from 'zod' export namespace firecrawl { export const apiBaseUrl = 'https://api.firecrawl.dev/v0' + // ----------------------------------------------------------------------------- + // Component schemas + // ----------------------------------------------------------------------------- + export const ScrapeResponseSchema = z.object({ success: z.boolean().optional(), /** Warning message to let you know of any issues. */ @@ -161,6 +168,10 @@ export namespace firecrawl { typeof CrawlStatusResponseObjSchema > + // ----------------------------------------------------------------------------- + // Operation schemas + // ----------------------------------------------------------------------------- + export const ScrapeParamsSchema = z.object({ /** The URL to scrape */ url: z.string().url().describe('The URL to scrape'), diff --git a/packages/openapi-to-ts-client/fixtures/generated/pet-store-client.ts b/packages/openapi-to-ts-client/fixtures/generated/pet-store-client.ts index bc3355d2..d32909a3 100644 --- a/packages/openapi-to-ts-client/fixtures/generated/pet-store-client.ts +++ b/packages/openapi-to-ts-client/fixtures/generated/pet-store-client.ts @@ -1,3 +1,6 @@ +/* eslint-disable unicorn/no-unreadable-iife */ +/* eslint-disable unicorn/no-array-reduce */ + /** * This file was auto-generated from an OpenAPI spec. */ @@ -13,6 +16,10 @@ import { z } from 'zod' export namespace petstore { export const apiBaseUrl = 'http://petstore.swagger.io/v1' + // ----------------------------------------------------------------------------- + // Component schemas + // ----------------------------------------------------------------------------- + export const PetSchema = z.object({ id: z.number().int(), name: z.string(), @@ -23,6 +30,10 @@ export namespace petstore { export const PetsSchema = z.array(PetSchema).max(100) export type Pets = z.infer + // ----------------------------------------------------------------------------- + // Operation schemas + // ----------------------------------------------------------------------------- + export const ListPetsParamsSchema = z.object({ /** How many items to return at one time (max 100) */ limit: z