这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@danielgtaylor
Copy link
Owner

🐳 In general, you should consider path parameters or a body for required arguments.

While discouraged, this enables marking query & header params as required via struct field tags, like this:

type MyInput struct {
  Start time.Time `query:"start" required:"true"`
}

Fixes #21.

@danielgtaylor danielgtaylor merged commit cc92206 into main Oct 22, 2023
@danielgtaylor danielgtaylor deleted the required-query-header branch October 22, 2023 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support mark as required for query parameters

2 participants