devexperts / devexperts/swagger-codegen-ts

Fix generation of entities with the same name in one file

Open
#91 0 comments 0 reactions 0 assignees View on GitHub
bug language: typescript 2.0 language: typescript 3.0 language: typescript asyncapi 2.0
Dominant language
TypeScript
Stars
80
Forks
17
PR merge metrics
No merged PRs in 30d

Description

```yaml
components:
schemas:
echo:
description: echo
type: string
messages:
echo:
payload:
$ref: '#/components/schemas/echo'
```
This piece will result in
```typescript
import { echo, echoIO } from '../../components/schemas/echo';

export type echo = echo;
export const echoIO = echoIO;
```

We need to find a way to avoid such conflicts. Possibly using named imports.

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.