@@ -16,8 +16,6 @@ import (
1616 "strings"
1717 "sync"
1818 "unicode/utf8"
19-
20- "github.com/modelcontextprotocol/go-sdk/internal/util"
2119)
2220
2321// The value of the "$schema" keyword for the version that we can validate.
@@ -74,7 +72,7 @@ type state struct {
7472
7573// validate validates the reflected value of the instance.
7674func (st * state ) validate (instance reflect.Value , schema * Schema , callerAnns * annotations ) (err error ) {
77- defer util . Wrapf (& err , "validating %s" , st .rs .schemaString (schema ))
75+ defer wrapf (& err , "validating %s" , st .rs .schemaString (schema ))
7876
7977 // Maintain a stack for dynamic schema resolution.
8078 st .stack = append (st .stack , schema ) // push
@@ -613,7 +611,7 @@ func (rs *Resolved) ApplyDefaults(instancep any) error {
613611// Leave this as a potentially recursive helper function, because we'll surely want
614612// to apply defaults on sub-schemas someday.
615613func (st * state ) applyDefaults (instancep reflect.Value , schema * Schema ) (err error ) {
616- defer util . Wrapf (& err , "applyDefaults: schema %s, instance %v" , st .rs .schemaString (schema ), instancep )
614+ defer wrapf (& err , "applyDefaults: schema %s, instance %v" , st .rs .schemaString (schema ), instancep )
617615
618616 schemaInfo := st .rs .resolvedInfos [schema ]
619617 instance := instancep .Elem ()
0 commit comments