{"id":13455289,"url":"https://github.com/asteasolutions/zod-to-openapi","last_synced_at":"2026-02-15T01:16:46.897Z","repository":{"id":36965183,"uuid":"481579846","full_name":"asteasolutions/zod-to-openapi","owner":"asteasolutions","description":"A library that generates OpenAPI (Swagger) docs from Zod schemas","archived":false,"fork":false,"pushed_at":"2024-12-06T12:16:08.000Z","size":998,"stargazers_count":1174,"open_issues_count":25,"forks_count":70,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-17T22:02:58.591Z","etag":null,"topics":["openapi","openapi3","schema","swagger","zod"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asteasolutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-14T11:32:57.000Z","updated_at":"2025-04-17T18:18:49.000Z","dependencies_parsed_at":"2023-10-02T23:28:26.263Z","dependency_job_id":"490ccf52-370e-4662-9b69-f2358b06df8f","html_url":"https://github.com/asteasolutions/zod-to-openapi","commit_stats":{"total_commits":271,"total_committers":14,"mean_commits":"19.357142857142858","dds":0.6014760147601477,"last_synced_commit":"e27e7c1c52dea8df750b408d9976c66740e38934"},"previous_names":[],"tags_count":58,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asteasolutions%2Fzod-to-openapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asteasolutions%2Fzod-to-openapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asteasolutions%2Fzod-to-openapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asteasolutions%2Fzod-to-openapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asteasolutions","download_url":"https://codeload.github.com/asteasolutions/zod-to-openapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254159761,"owners_count":22024564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openapi","openapi3","schema","swagger","zod"],"created_at":"2024-07-31T08:01:03.457Z","updated_at":"2026-01-04T13:11:05.755Z","avatar_url":"https://github.com/asteasolutions.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","others","Convertors and Generators"],"sub_categories":[],"readme":"# Zod to OpenAPI\n\n[![npm version](https://img.shields.io/npm/v/@asteasolutions/zod-to-openapi)](https://www.npmjs.com/package/@asteasolutions/zod-to-openapi)\n[![npm downloads](https://img.shields.io/npm/dm/@asteasolutions/zod-to-openapi)](https://www.npmjs.com/package/@asteasolutions/zod-to-openapi)\n\n\u003e [!IMPORTANT]\n\u003e **For Zod v3 support, please use the v7.3.4 version. However keep in mind that we do not intend to actively support that version going forward** Install with: `npm install @asteasolutions/zod-to-openapi@7.3.4`\n\nA library that uses [zod schemas](https://github.com/colinhacks/zod) to generate an Open API Swagger documentation.\n\n1. [Purpose and quick example](#purpose-and-quick-example)\n2. [Usage](#usage)\n   1. [Installation](#installation)\n   2. [The `openapi` method](#the-openapi-method)\n   3. [The Registry](#the-registry)\n   4. [The Generator](#the-generator)\n   5. [Defining schemas](#defining-schemas)\n   6. [Defining routes \u0026 webhooks](#defining-routes--webhooks)\n   7. [Defining custom components](#defining-custom-components)\n   8. [A full example](#a-full-example)\n   9. [Adding it as part of your build](#adding-it-as-part-of-your-build)\n   10. [Using schemas vs a registry](#using-schemas-vs-a-registry)\n   11. [Generation options](#generation-options)\n3. [Zod schema types](#zod-schema-types)\n   1. [Supported types](#supported-types)\n   2. [Unsupported types](#unsupported-types)\n4. [Technologies](#technologies)\n\nWe keep a changelog as part of the [GitHub releases](https://github.com/asteasolutions/zod-to-openapi/releases).\n\n## Purpose and quick example\n\nWe at [Astea Solutions](https://asteasolutions.com/) made this library because we use [zod](https://github.com/colinhacks/zod) for validation in our APIs and are tired of the duplication to also support a separate OpenAPI definition that must be kept in sync. Using `zod-to-openapi`, we generate OpenAPI definitions directly from our zod schemas, thus having a single source of truth.\n\nSimply put, it turns this:\n\n```ts\nconst UserSchema = z\n  .object({\n    id: z.string().openapi({ example: '1212121' }),\n    name: z.string().openapi({ example: 'John Doe' }),\n    age: z.number().openapi({ example: 42 }),\n  })\n  .openapi('User');\n\nregistry.registerPath({\n  method: 'get',\n  path: '/users/{id}',\n  summary: 'Get a single user',\n  request: {\n    params: z.object({ id: z.string() }),\n  },\n\n  responses: {\n    200: {\n      description: 'Object with user data.',\n      content: {\n        'application/json': {\n          schema: UserSchema,\n        },\n      },\n    },\n  },\n});\n```\n\ninto this:\n\n```yaml\ncomponents:\n  schemas:\n    User:\n      type: object\n      properties:\n        id:\n          type: string\n          example: '1212121'\n        name:\n          type: string\n          example: John Doe\n        age:\n          type: number\n          example: 42\n      required:\n        - id\n        - name\n        - age\n\n/users/{id}:\n  get:\n    summary: Get a single user\n    parameters:\n      - in: path\n        name: id\n        schema:\n          type: string\n        required: true\n    responses:\n      '200':\n        description: Object with user data\n        content:\n          application/json:\n            schema:\n              $ref: '#/components/schemas/User'\n```\n\nand you can still use `UserSchema` and the `request.params` object to validate the input of your API.\n\n## Usage\n\n### Installation\n\n```shell\nnpm install @asteasolutions/zod-to-openapi\n# or\nyarn add @asteasolutions/zod-to-openapi\n```\n\n### The `openapi` method\n\nTo keep openapi definitions natural, we add an `openapi` method to all Zod objects. Its idea is to provide a convenient way to provide OpenApi specific data.\nIt has three overloads:\n\n1. `.openapi({ [key]: value })` - this way we can specify any OpenApi fields. For example `z.number().openapi({ example: 3 })` would add `example: 3` to the generated schema.\n2. `.openapi(\"\u003cschema-name\u003e\")` - this way we specify that the underlying zod schema should be \"registered\" i.e added into `components/schemas` with the provided `\u003cschema-name\u003e`\n3. `.openapi(\"\u003cschema-name\u003e\", { [key]: value })` - this unites the two use cases above so that we can specify both a registration `\u003cschema-name\u003e` and additional metadata\n\nFor this to work, you need to call `extendZodWithOpenApi` once in your project.\n\nThis should be done only once in a common-entrypoint file of your project (for example an `index.ts`/`app.ts`). If you're using tree-shaking with Webpack, mark that file as having side-effects.\n\nIt can be bit tricky to achieve this in your codebase, because *require* is synchronous and *import* is a async.\n\n#### Using zod's .meta\nStarting from v8 (and zod v4) you can also use zod's .meta to provide metadata and we will read it accordingly.\n\nWith zod's new option for generating JSON schemas and maintaining registries we've added a pretty much seamless support for all metadata information coming from `.meta` calls as if that was metadata passed into `.openapi`.\n\nSo the following 2 schemas produce exactly the same results:\n```ts\nconst schema = z\n  .string()\n  .openapi('Schema', { description: 'Name of the user', example: 'Test' });\n\nconst schema2 = z\n  .string()\n  .meta({ id: 'Schema2', description: 'Name of the user', example: 'Test' });\n```\n\n\u003e Note: This also means that you unless you are using some of our more complicated scenarios you could even generate a schema without using `extendZodWithOpenApi` in your codebase and only rely on `.meta` to provide additional metadata information and schema names (using the `id` property).\n\n#### Scenarios that require using `extendZodWithOpenApi` and `.openapi`\n1. When extending registered schemas that are both registered and want the extended one to use `anyOf` i.e:\n\n```ts\nconst schema = z.object({ name: z.string() }).openapi('Schema');\n\nconst schema2 = schema.extend({ age: z.number() }).openapi('Schema2'); // this one would have anyOf and a reference to the first one\n```\n2. Defining parameter metadata. So for example when doing:\n```ts\nregistry.registerPath({\n  // ...\n  request: {\n    query: z.object({\n      name: z.string().openapi({\n        description: 'Schema level description',\n        param: { description: 'Param level description' },\n      }),\n    }),\n  },\n});\n```\n\nthe result would be:\n```ts\n  \"parameters\": [\n      {\n        \"schema\": {\n          \"type\": \"string\",\n          \"description\": \"Schema level description\" // comes directly from description\n        },\n        \"required\": true,\n        \"description\": \"Param level description\", // comes from param.description\n        \"name\": \"name\",\n        \"in\": \"query\"\n      }\n  ],\n```\n\n\n### The basic idea\n\n```ts\nimport { extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi';\nimport { z } from 'zod';\n\nextendZodWithOpenApi(z);\n\n// We can now use `.openapi()` to specify OpenAPI metadata\nz.string().openapi({ description: 'Some string' });\n```\n\n### Example 1: Calling the openapi-extension using tsx\n\n```\n//zod-extend.ts\n\nimport { extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi';\nimport { z } from 'zod';\n\nextendZodWithOpenApi(z);\n\n// package.json\n\n  \"scripts\": {\n    \"start\": \"tsx --import ./zod-extend.ts ./index.ts\",\n```\n\n### Example 2 - require-syntax\n\n```\nimport { extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi';\nimport { z } from 'zod';\n\nextendZodWithOpenApi(z);\n\nconst { startServer } = require('./server/start');\nstartServer();\n```\n\n\n### The Registry\n\nThe `OpenAPIRegistry` is a utility that can be used to collect definitions which would later be passed to a `OpenApiGeneratorV3` or `OpenApiGeneratorV31` instance.\n\n```ts\nimport {\n  OpenAPIRegistry,\n  OpenApiGeneratorV3,\n} from '@asteasolutions/zod-to-openapi';\n\nconst registry = new OpenAPIRegistry();\n\n// Register definitions here\n\nconst generator = new OpenApiGeneratorV3(registry.definitions);\n\nreturn generator.generateComponents();\n```\n\n### The Generator\n\nThere are two generators that can be used - `OpenApiGeneratorV3` and `OpenApiGeneratorV31`. They share the same interface but internally generate schemas that correctly follow the data format for the specific Open API version - `3.0.x` or `3.1.x`. The Open API version affects how some components are generated.\n\nFor example: changing the generator from `OpenApiGeneratorV3` to `OpenApiGeneratorV31` would result in following differences:\n\n```ts\nz.string().nullable().openapi({refId: 'name'});\n```\n\n```yml\n# 3.1.0\n# nullable is invalid in 3.1.0 but type arrays are invalid in previous versions\nname:\n  type:\n    - 'string'\n    - 'null'\n\n# 3.0.0\nname:\n  type: 'string'\n  nullable: true\n```\n\nBoth generators take a single argument in their constructors - an array of definitions - i.e results from the registry or regular zod schemas.\n\nThe public methods of both generators are as follows:\n\n`generateComponents` will generate only the `/components` section of an OpenAPI document (e.g. only `schemas` and `parameters`), not generating actual routes.\n\n`generateDocument` will generate the whole OpenAPI document.\n\n### Defining schemas\n\nAn OpenApi schema should be registered by using the `.openapi` method and providing a name:\n\n```ts\nconst UserSchema = z\n  .object({\n    id: z.string().openapi({ example: '1212121' }),\n    name: z.string().openapi({ example: 'John Doe' }),\n    age: z.number().openapi({ example: 42 }),\n  })\n  .openapi('User');\n\nconst generator = new OpenApiGeneratorV3([UserSchema]);\n```\n\nThe same can be achieved by using the `register` method of an `OpenAPIRegistry` instance. For more check the [\"Using schemas vs a registry\"](#using-schemas-vs-a-registry) section\n\n```ts\nconst UserSchema = registry.register(\n  'User',\n  z.object({\n    id: z.string().openapi({ example: '1212121' }),\n    name: z.string().openapi({ example: 'John Doe' }),\n    age: z.number().openapi({ example: 42 }),\n  })\n);\n\nconst generator = new OpenApiGeneratorV3(registry.definitions);\n```\n\nIf run now, `generator.generateComponents()` will generate the following structure:\n\n```yaml\ncomponents:\n  schemas:\n    User:\n      type: object\n      properties:\n        id:\n          type: string\n          example: '1212121'\n        name:\n          type: string\n          example: John Doe\n        age:\n          type: number\n          example: 42\n      required:\n        - id\n        - name\n        - age\n```\n\nThe key for the schema in the output is the first argument passed to `.openapi` method (or the `.register`) - in this case: `User`.\n\nNote that `generateComponents` does not return YAML but a JS object - you can then serialize that object into YAML or JSON depending on your use-case.\n\nThe resulting schema can then be referenced by using `$ref: #/components/schemas/User` in an existing OpenAPI JSON. This will be done automatically for Routes defined through the registry.\n\nNote by default a Zod object will result in `\"additionalProperties\": true` as per the Open API spec unless using `strict` or `catchall`, this is in contrast to normal Zod object usage where `zod.parse` is used.\n\n### Defining routes \u0026 webhooks\n\n#### Registering a path or webhook\n\nAn OpenAPI path is registered using the `registerPath` method of an `OpenAPIRegistry` instance. An OpenAPI webhook is registered using the `registerWebhook` method and takes the same parameters as `registerPath`.\n\n```ts\nregistry.registerPath({\n  method: 'get',\n  path: '/users/{id}',\n  description: 'Get user data by its id',\n  summary: 'Get a single user',\n  request: {\n    params: z.object({\n      id: z.string().openapi({ example: '1212121' }),\n    }),\n  },\n  responses: {\n    200: {\n      description: 'Object with user data.',\n      content: {\n        'application/json': {\n          schema: UserSchema,\n        },\n      },\n    },\n    204: {\n      description: 'No content - successful operation',\n    },\n  },\n});\n```\n\nThe YAML equivalent of the schema above would be:\n\n```yaml\n'/users/{id}':\n  get:\n    description: Get user data by its id\n    summary: Get a single user\n    parameters:\n      - in: path\n        name: id\n        schema:\n          type: string\n          example: '1212121'\n        required: true\n    responses:\n      '200':\n        description: Object with user data.\n        content:\n          application/json:\n            schema:\n              $ref: '#/components/schemas/User'\n      '204':\n        description: No content - successful operation\n```\n\nThe library specific properties for `registerPath` are `method`, `path`, `request` and `responses`. Everything else gets directly appended to the path definition.\n\n- `method` - One of `get`, `post`, `put`, `delete` and `patch`;\n- `path` - a string - being the path of the endpoint;\n- `request` - an optional object with optional `body`, `params`, `query` and `headers` keys,\n  - `query`, `params` - being instances of `ZodObject`\n  - `body` - an object with a `description` and a `content` record where:\n    - the key is a `mediaType` string like `application/json`\n    - and the value is an object with a `schema` of any `zod` type\n  - `headers` - instances of `ZodObject` or an array of any `zod` instances\n- `responses` - an object where the key is the status code or `default` and the value is an object with a `description` and a `content` record where:\n  - the key is a `mediaType` string like `application/json`\n  - and the value is an object with a `schema` of any `zod` type\n\n#### Defining route parameters\n\nIf you don't want to inline all parameter definitions, you can define them separately with `registerParameter` and then reference them:\n\n```ts\nconst UserIdParam = registry.registerParameter(\n  'UserId',\n  z.string().openapi({\n    param: {\n      name: 'id',\n      in: 'path',\n    },\n    example: '1212121',\n  })\n);\n\nregistry.registerPath({\n  ...\n  request: {\n    params: z.object({\n      id: UserIdParam\n    }),\n  },\n  responses: ...\n});\n```\n\nThe YAML equivalent would be:\n\n```yaml\ncomponents:\n  parameters:\n    UserId:\n      in: path\n      name: id\n      schema:\n        type: string\n        example: '1212121'\n      required: true\n\n'/users/{id}':\n  get:\n    ...\n    parameters:\n      - $ref: '#/components/parameters/UserId'\n    responses: ...\n```\n\nNote: In order to define properties that apply to the parameter itself, use the `param` property of `.openapi`. Any properties provided outside of `param` would be applied to the schema for this parameter.\n\n#### Generating the full document\n\nA full OpenAPI document can be generated using the `generateDocument` method of an `OpenApiGeneratorV3` or `OpenApiGeneratorV31` instance. It takes one argument - the document config. It may look something like this:\n\n```ts\nreturn generator.generateDocument({\n  openapi: '3.0.0',\n  info: {\n    version: '1.0.0',\n    title: 'My API',\n    description: 'This is the API',\n  },\n  servers: [{ url: 'v1' }],\n});\n```\n\n### Defining custom components\n\nYou can define components that are not OpenAPI schemas, including security schemes, response headers and others. See [this test file](spec/custom-components.spec.ts) for examples.\n\n### A full example\n\nA full example code can be found [here](./example/index.ts). And the YAML representation of its result - [here](./example/openapi-docs.yml)\n\n### Using schemas vs a registry\n\nSchemas are automatically being registered when referenced. That means that if you have a schema like:\n\n```ts\nconst schema = z.object({ key: z.string().openapi('Test') }).openapi('Object');\n```\n\nyou'd have the following resulting structure:\n\n```yaml\ncomponents:\n  schemas:\n    Test:\n      type: 'string',\n    Object:\n      type: 'object',\n      properties:\n        key:\n          $ref: '#/components/schemas/Test'\n      required: ['key']\n```\n\nThis does not require any usages of an `OpenAPIRegistry` instance.\n\nHowever the same output can be achieved with the following code:\n\n```ts\nconst registry = new OpenAPIRegistry();\nconst schema = registry.register(\n  'Object',\n  z.object({ key: z.string().openapi('Test') })\n);\n```\n\nThe main benefit of the `.registry` method is that you can use the registry as a \"collection\" where you would put all such schemas.\n\nWith `.openapi`:\n\n```ts\n// file1.ts\nexport const Schema1 = ...\n\n// file2.ts\nexport const Schema2 = ...\n\nnew OpenApiGeneratorV3([Schema1, Schema2])\n```\n\nAdding a `NewSchema` into `file3.ts` would require you to pass that schema manually into the array of the generator constructor.\nNote: If a `NewSchema` is referenced by any other schemas or a route/webhook definition it would still appear in the resulting document.\n\nWith `registry.register`:\n\n```ts\n// registry.ts\nexport const registry = new OpenAPIRegistry()\n\n// file1.ts\nexport const Schema1 = registry.register(...)\n\n// file2.ts\nexport const Schema2 = registry.register(...)\n\nnew OpenApiGeneratorV3(registry.definitions)\n```\n\nAdding a `NewSchema` into `file3.ts` and using `registry.register` would NOT require you to do any changes to the generator constructor.\n\n#### Conclusion\n\nUsing an `OpenAPIRegistry` instance is mostly useful if you would want your resulting document to contain unreferenced schemas.\nThat can sometimes be useful - for example when you are slowly integrating an already existing documentation with `@asteasolutions/zod-to-openapi` and you are migrating small pieces at a time. Those pieces can then be referenced directly from an existing documentation.\n\n#### Adding it as part of your build\n\nIn a file inside your project you can have a file like so:\n\n```ts\nexport const registry = new OpenAPIRegistry();\n\nexport function generateOpenAPI() {\n  const config = {...}; // your config comes here\n\n  return new OpenApiGeneratorV3(registry.definitions).generateDocument(config);\n}\n```\n\nYou then use the exported `registry` object to register all schemas, parameters and routes where appropriate.\n\nThen you can create a script that executes the exported `generateOpenAPI` function. This script can be executed as a part of your build step so that it can write the result to some file like `openapi-docs.json`.\n\n### Generation options\n\nSchema generation can be altered in certain scenarios. This can be done by either:\n\n#### Passing a global configuration as second argument for the generator:\n\n```ts\nconst generator = new OpenApiGeneratorV3(registry.definitions, options);\n```\n\n\nThere list of currently supported global options is:\n```ts\nconst options = {\n  unionPreferredType: 'oneOf' | 'anyOf' // configures whether oneOf or anyOf is used when generating a schema for a zod union\n  sortComponents?: 'alphabetically'; // if sortComponents is passed with the value 'alphabetically' it would sort all schemas and parameters.\n                                     // If not - they would appear in the order they were defined\n}\n```\n\n\n#### Passing options for a one-off usage for a single schema:\n\n```ts\n// Note it is valid for metadata to be undefined in both of the below cases:\n\nschema.openapi('Schema', metadata, options); // when registering a schema or\nschema.openapi(metadata, options) // when simply adding some metadata to it\n```\n\nThere list of currently supported one-off options is:\n```ts\nconst options = {\n  unionPreferredType: 'oneOf' | 'anyOf' // configures whether oneOf or anyOf is used when generating a schema for a zod union\n}\n```\n\n## Zod schema types\n\n### Supported types\n\nThe list of all supported types as of now is:\n\n- `ZodAny`\n- `ZodArray`\n- `ZodBigInt`\n- `ZodBoolean`\n- `ZodDate`\n- `ZodDefault`\n- `ZodPrefault`\n- `ZodDiscriminatedUnion`\n  - including `discriminator` mapping when all Zod objects in the union are registered with `.register()` or contain a `refId`.\n- `ZodEffects`\n- `ZodEnum`\n- `ZodIntersection`\n- `ZodLiteral`\n- `ZodNativeEnum`\n- `ZodNullable`\n- `ZodNumber`\n  - including `z.number().int()` being inferred as `type: 'integer'`\n- `ZodObject`\n  - including `.catchall` resulting in the respective `additionalProperties` schema\n  - also including `strict` resulting in the respective `additionalProperties` schema\n- `ZodOptional`\n- `ZodPipeline`\n- `ZodReadonly`\n- `ZodRecord`\n- `ZodString`\n  - adding `format` for:\n    - `.emoji()`\n    - `.cuid()`\n    - `.cuid2()`\n    - `.ulid()`\n    - `.ip()`\n    - `.date()`\n    - `.datetime()`\n    - `.uuid()`\n    - `.email()`\n    - `.url()`\n  - adding `pattern` for `.regex()` is also supported\n\n- `ZodTuple`\n- `ZodUnion`\n- `ZodUnknown`\n\nExtending an instance of `ZodObject` is also supported and results in an OpenApi definition with `allOf`\n\n### Unsupported types\n\nIn case you try to create an OpenAPI schema from a zod schema that is not one of the aforementioned types then you'd receive an `UnknownZodTypeError`.\n\nYou can still register such schemas on your own by providing a `type` via the `.openapi` method. In case you think that the desired behavior can be achieved automatically do not hesitate to reach out to us by describing your case via Github Issues.\n\n#### Known issues\n\n1. `z.nullable(schema)` [does not generate a $ref for underlying registered schemas](https://github.com/asteasolutions/zod-to-openapi/issues/141).\n  - This is an implementation limitation.\n  - However you can simply use `schema.nullable()` which has the exact same effect `zod` wise but it is also fully supported on our end.\n\n## Technologies\n\n- [Typescript](https://www.typescriptlang.org/)\n- [Zod 4.x](https://github.com/colinhacks/zod)\n- [OpenAPI 3.x TS](https://github.com/metadevpro/openapi3-ts)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasteasolutions%2Fzod-to-openapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasteasolutions%2Fzod-to-openapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasteasolutions%2Fzod-to-openapi/lists"}