astahmer / openapi-zod-client

Generate a zodios (typescript http client with zod validation) from an OpenAPI spec (json/yaml)

Home Page:openapi-zod-client.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaScript reserved words being generated as variable names

andenacitelli opened this issue · comments

commented

Example (variable is named import:

image

Generated from the official GitHub REST API OpenAPI spec: https://github.com/github/rest-api-description/blob/main/descriptions/api.github.com/api.github.com.yaml

good catch ! feel free to open a PR, the relevant code should be around here