acacode / acacode/swagger-typescript-api

Typescript enum generation fails with special characters

Open
#351 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
4.1k
Forks
436
PR merge metrics
No merged PRs in 30d

Description

The following schema:
```json
{
"enum": ["&&", "||"],
"type": "string"
}
```
is compiled to
```ts
export enum RuleChainingOperator {
Type = '&&',
Type = '||',
}
```

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.