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

feat: allow making query/header params required #149

Merged
merged 1 commit into from
Oct 22, 2023

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
3 checks passed
@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
1 participant