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: operation metadata and autopatch disable #159

Merged
merged 1 commit into from
Oct 31, 2023
Merged

Conversation

danielgtaylor
Copy link
Owner

This PR:

  • Updates some docs
  • Makes autopatch.PatchResource public for more control (if desired)
  • Adds huma.Operation.Metadata to store arbitrary config data
  • Enables autopatch opt out via op metadata {"autopatch": false}
  • Updates some tests to use the new humatest test API features

@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
autopatch/autopatch.go 89.63% <100.00%> (+0.25%) ⬆️
openapi.go 48.14% <ø> (ø)

📢 Thoughts on this report? Let us know!.

@danielgtaylor danielgtaylor merged commit 9985ef2 into main Oct 31, 2023
5 checks passed
@danielgtaylor danielgtaylor deleted the op-meta branch October 31, 2023 05:50
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.

1 participant