Comments (11)
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.
Hey @Zixueban, what's the expected result?
from openapi-ts.
Hey @Zixueban, what's the expected result?
I expect results to be entirely in English, not including Chinese. Why generate Chinese
from openapi-ts.
This is the backend code @mrlubos
from openapi-ts.
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.
The upcoming clients will do away with services altogether so you'll have one less thing to worry about though 🙌
from openapi-ts.
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.
My tags should be kept in English, right? @mrlubos
from openapi-ts.
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.
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.
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)
- Define required headers in one place for all service methods HOT 1
- How to only generate types without clients or the other stuff? HOT 3
- Add provenance statement
- Throw error on non-success response status
- TypeScript 4.x compatibility HOT 6
- Prettier & Eslint: Ability to specify the path of configuration files HOT 2
- Partial options function for tanstack-query HOT 7
- Full SDK generator HOT 1
- Improve query keys
- Enable autogen import/export files with file extension
- additionalProperties number type produces output interface with integer data type HOT 1
- Generate multiple clients HOT 1
- Duplicated code when using bundle HOT 2
- Endpoints with the same operationId generate single data type HOT 5
- Generation ignore a query parameter HOT 8
- The generated types from nested allOf and oneOf's don't compose correctly HOT 4
- Add continuous preview releases
- Export spec-compliant OpenAPI 3.1 interface
- Add an option to modify generated type names via a builder or a suffix HOT 1
- Add configurable default value for ThrowOnError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openapi-ts.