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

goctl api ts does not generate "?" mark in output ts file #2829

Open
cdz620 opened this issue Jan 30, 2023 · 4 comments
Open

goctl api ts does not generate "?" mark in output ts file #2829

cdz620 opened this issue Jan 30, 2023 · 4 comments
Labels

Comments

@cdz620
Copy link

cdz620 commented Jan 30, 2023

Describe the bug
api file:

type XXXReq {
   Phone string `form:"phone,optional"`
}

shell cmd: goctl api ts ……
generated ts file:

export interface XXXReqParams {
    phone: string
}

Expected behavior
Should generate ts file as follow:

export interface XXXReqParams {
    phone?: string
}

Screenshots
If applicable, add screenshots to help explain your problem.

Environments (please complete the following information):

  • OS: MacOS
  • go-zero version: 1.4.4
  • goctl version: 1.4.4

More description

@Aseisman
Copy link

the same to you , wait for the answer

@cdz620
Copy link
Author

cdz620 commented Nov 22, 2023

use goctl 1.4.0

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


use goctl 1.4.0

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants