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

Conversation

@danielgtaylor
Copy link
Owner

Quick fix for a typo.

Copilot AI review requested due to automatic review settings March 16, 2025 16:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a typo in the model validator documentation by updating the function call from huma.ModelValidator() to huma.NewModelValidator().

  • Updated the example code in docs to reflect the correct function call.
  • Updated corresponding commented code in validate.go for consistency.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docs/docs/features/model-validation.md Corrected the constructor call in the docs.
validate.go Updated the commented example to match the docs.

@codecov
Copy link

codecov bot commented Mar 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.05%. Comparing base (b69ebc7) to head (4575d8f).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #766   +/-   ##
=======================================
  Coverage   93.05%   93.05%           
=======================================
  Files          23       23           
  Lines        5254     5254           
=======================================
  Hits         4889     4889           
  Misses        313      313           
  Partials       52       52           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@danielgtaylor danielgtaylor merged commit 5b6d56a into main Mar 16, 2025
7 checks passed
@danielgtaylor danielgtaylor deleted the fix-model-validator-doc branch March 16, 2025 16:26
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.

2 participants