grantila / grantila/typeconv

[ts-to-oapi] Enums are not generated during conversion.

Open
#28 3 comments 7 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
447
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Hi. I have a number of TypeScript files which I am trying to generate OpenAPI documentation for using this tool. In one of the typescript files, I have an enum which looks like the following:

```ts
export enum SpeciesKind {
Human,
Bird,
Fish
}
```

I am using the following command to generate OpenAPI documentation from my typescript files:

```sh
npx typeconv -f ts -t oapi -o spec ./src/*.ts
```

When running the above command, everything is generated as expected except for any enums I have in my code, no OpenAPI schema is generated for them.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.