jsonschema: remove jsonschema code and depend on google/jsonschema-go (#262)

This CL prunes the jsonschema directory and updates the go.mod.

For #28
This commit is contained in:
Sam Thanawalla 2025-08-07 15:30:06 -04:00 • committed by GitHub
commit e9e0da8dac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 13 additions and 15643 deletions

View file

@ -11,7 +11,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/modelcontextprotocol/go-sdk/jsonschema"
"github.com/google/jsonschema-go/jsonschema"
"github.com/modelcontextprotocol/go-sdk/mcp"
)

View file

@ -11,7 +11,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/modelcontextprotocol/go-sdk/jsonschema"
"github.com/google/jsonschema-go/jsonschema"
)
type Item struct {

View file

@ -11,7 +11,7 @@ import (
"os"
"time"
"github.com/modelcontextprotocol/go-sdk/jsonschema"
"github.com/google/jsonschema-go/jsonschema"
"github.com/modelcontextprotocol/go-sdk/mcp"
)

View file

@ -11,7 +11,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/modelcontextprotocol/go-sdk/jsonschema"
"github.com/google/jsonschema-go/jsonschema"
)
type SayHiParams struct {

View file

@ -21,8 +21,8 @@ import (
"time"
"github.com/google/go-cmp/cmp"
"github.com/google/jsonschema-go/jsonschema"
"github.com/modelcontextprotocol/go-sdk/internal/jsonrpc2"
"github.com/modelcontextprotocol/go-sdk/jsonschema"
)
type hiParams struct {

View file

@ -14,7 +14,7 @@ import (
"encoding/json"
"fmt"
"github.com/modelcontextprotocol/go-sdk/jsonschema"
"github.com/google/jsonschema-go/jsonschema"
)
// Optional annotations for the client. The client can use annotations to inform

View file

@ -11,7 +11,7 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
"github.com/modelcontextprotocol/go-sdk/jsonschema"
"github.com/google/jsonschema-go/jsonschema"
)
type testItem struct {

View file

@ -24,9 +24,9 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/google/jsonschema-go/jsonschema"
"github.com/modelcontextprotocol/go-sdk/internal/jsonrpc2"
"github.com/modelcontextprotocol/go-sdk/jsonrpc"
"github.com/modelcontextprotocol/go-sdk/jsonschema"
)
func TestStreamableTransports(t *testing.T) {

View file

@ -11,7 +11,7 @@ import (
"fmt"
"reflect"
"github.com/modelcontextprotocol/go-sdk/jsonschema"
"github.com/google/jsonschema-go/jsonschema"
)
// A ToolHandler handles a call to tools/call.

View file

@ -12,7 +12,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/modelcontextprotocol/go-sdk/jsonschema"
"github.com/google/jsonschema-go/jsonschema"
)
// testToolHandler is used for type inference in TestNewServerTool.