Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix generation of entities with the same name in one file #91

Open
raveclassic opened this issue Dec 10, 2019 · 0 comments
Open

Fix generation of entities with the same name in one file #91

raveclassic opened this issue Dec 10, 2019 · 0 comments
Labels
bug Something isn't working language: typescript asyncapi 2.0 Typescript language template for AsyncAPI 2.0 spec language: typescript 2.0 Typescript language template for Swagger 2.0 spec language: typescript 3.0 Typescript language template for OpenAPI 3.0 spec
Milestone

Comments

@raveclassic
Copy link
Contributor

components:
  schemas:
    echo:
      description: echo
      type: string
  messages:
    echo:
      payload:
        $ref: '#/components/schemas/echo'

This piece will result in

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.

@raveclassic raveclassic added enhancement New feature or request language: typescript 2.0 Typescript language template for Swagger 2.0 spec language: typescript 3.0 Typescript language template for OpenAPI 3.0 spec language: typescript asyncapi 2.0 Typescript language template for AsyncAPI 2.0 spec language: sketch-121 Typescript language template for SketchFileFormat-121 spec labels Dec 10, 2019
@raveclassic raveclassic added this to the 2.0 milestone Dec 10, 2019
@raveclassic raveclassic added bug Something isn't working and removed enhancement New feature or request labels Dec 10, 2019
@raveclassic raveclassic changed the title Find a way to support entities with the same name in one file Fix generation of entities with the same name in one file Dec 10, 2019
@raveclassic raveclassic removed the language: sketch-121 Typescript language template for SketchFileFormat-121 spec label Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working language: typescript asyncapi 2.0 Typescript language template for AsyncAPI 2.0 spec language: typescript 2.0 Typescript language template for Swagger 2.0 spec language: typescript 3.0 Typescript language template for OpenAPI 3.0 spec
Projects
None yet
Development

No branches or pull requests

1 participant