Giter Site home page Giter Site logo

Comments (11)

Gkibify avatar Gkibify commented on August 21, 2024 1

I'm going to file this under clients and once they're released we can revisit. It looks like you're using the Fetch API client, you should be able to migrate as that will be the first one released.

I used the Axios client

from openapi-ts.

mrlubos avatar mrlubos commented on August 21, 2024

Hey @Zixueban, what's the expected result?

from openapi-ts.

Gkibify avatar Gkibify commented on August 21, 2024

Hey @Zixueban, what's the expected result?

I expect results to be entirely in English, not including Chinese. Why generate Chinese

from openapi-ts.

Gkibify avatar Gkibify commented on August 21, 2024

image
This is the backend code @mrlubos

from openapi-ts.

mrlubos avatar mrlubos commented on August 21, 2024

Service names are based on tags. Your tags don't have any English characters in them. So even if we stripped the Chinese characters, what would the expected result be?

from openapi-ts.

mrlubos avatar mrlubos commented on August 21, 2024

The upcoming clients will do away with services altogether so you'll have one less thing to worry about though 🙌

from openapi-ts.

Gkibify avatar Gkibify commented on August 21, 2024

Service names are based on tags. Your tags don't have any English characters in them. So even if we stripped the Chinese characters, what would the expected result be?

In the original openapi-typescript codegen repository, it will generate a Service, even if my tag is in Chinese

from openapi-ts.

Gkibify avatar Gkibify commented on August 21, 2024

My tags should be kept in English, right? @mrlubos

from openapi-ts.

mrlubos avatar mrlubos commented on August 21, 2024

You mean it would generate a service called literally Service? If so, that's because openapi-typescript-codegen doesn't support non-ASCII characters

from openapi-ts.

Gkibify avatar Gkibify commented on August 21, 2024

You mean it would generate a service called literally Service? If so, that's because openapi-typescript-codegen doesn't support non-ASCII characters

Understood, there is no way to recognize Chinese labels as English, so that class names containing Chinese characters will not be generated

from openapi-ts.

mrlubos avatar mrlubos commented on August 21, 2024

I'm going to file this under clients and once they're released we can revisit. It looks like you're using the Fetch API client, you should be able to migrate as that will be the first one released.

from openapi-ts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.