We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example Swagger/OpenAPI definition:
openapi: 3.0.3 info: title: SwaggerTest contact: {} version: BETA1 servers: - url: 'http://localhost:4010' description: mock paths: /users: get: tags: - Users summary: GetUsersList operationId: GetUsersList parameters: - name: count in: query description: '' style: form explode: true schema: type: integer format: int32 example: 10 minimum: 1 - name: start_index in: query description: '' style: form explode: true schema: type: integer format: int32 example: 0 minimum: 0 - name: sort_by in: query schema: items: $ref: '#/components/schemas/UserSortList' - name: group_by schema: items: $ref: '#/components/schemas/UserGroupList' in: query responses: '200': description: OK headers: {} content: application/json: schema: type: array nullable: true items: $ref: '#/components/schemas/UserList' examples: FirstFetch: value: - key: a84b5ff9-f2df-4f86-85a7-64bd2b998193 FullName: 'AdminName' Status: Active JobTitle: 'AdminJobTitle' - key: 1d0108ee-fa22-4977-a663-fe50eb5390fc FullName: 'EmployeeName' Status: Active JobTitle: 'EmployeeJobTitle' NewEmployee: value: - key: 4d1cb837-4fa1-478a-9fde-82efa1f73cb6 FullName: 'NewEmployeeName' Status: New JobTitle: 'NewEmployeeJobTitle' 'NULL': value: null Empty: value: [] '400': description: Bad Request '401': description: Unauthorized '403': description: Forbidden '500': description: Internal Server Error deprecated: false description: Get list of organization users. components: securitySchemes: bearerAuth: type: http scheme: bearer schemas: UserList: type: object title: UserList example: key: a84b5ff9-f2df-4f86-85a7-64bd2b998193 FullName: 'AdminName' Status: Active JobTitle: 'AdminJobTitle' description: '' additionalProperties: false nullable: true properties: key: type: string format: uuid FullName: type: string Status: $ref: '#/components/schemas/UserStatus' JobTitle: type: string required: - key - FullName - Status - JobTitle readOnly: true UserStatus: type: string enum: - Active - New - Suspend x-tags: - enums UserSortList: type: string x-tags: - enums enum: - Date - Balance UserGroupList: type: string x-tags: - enums enum: - Employee - Employer security: - bearerAuth: [] tags: - name: Users
Generating typescript-fetch client outputs correct types but typescript-axios replaces every type with any
typescript-fetch
typescript-axios
any
Steps to reproduce the behavior:
yaml
The types should not be any
The text was updated successfully, but these errors were encountered:
Code generation functionality of editor is provided by swagger codegen, I would kindly ask you to move this issue to codegen repo instead.
Sorry, something went wrong.
Thanks for answering, I checked it's issues it seems there is an open issue for it already at here.
No branches or pull requests
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
Generating
typescript-fetch
client outputs correct types buttypescript-axios
replaces every type withany
To reproduce...
Steps to reproduce the behavior:
yaml
dataany
Expected behavior
The types should not be
any
Screenshots
Additional context or thoughts
The text was updated successfully, but these errors were encountered: