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: Set default value to TagInfo #1222

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

StounhandJ
Copy link

What type of PR is this?

fix

Check the PR title.

  • This PR title match the format: <type>(Fix of setting the default value in a query request): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en: Fix of setting the default value in a query request
zh(optional):

(Optional) Which issue(s) this PR fixes:

When Binding the structure shown below, the default value is not set for a json and query type request. This fix fixes this for a query type query.

type List struct {
	Limit  int `json:"limit" query:"limit" validate:"omitempty,min=1,max=100" default:"50"`
	Offset int `json:"offset" query:"offset" validate:"omitempty,min=0" default:"0"`
}

(Optional) The PR that updates user documentation:

@StounhandJ StounhandJ requested review from a team as code owners October 30, 2024 18:31
@CLAassistant
Copy link

CLAassistant commented Oct 30, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants