Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/docker/docker-agent
/ MustSchemaFor
Function
MustSchemaFor
pkg/tools/schema.go:9–15 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
7
)
8
9
func
MustSchemaFor[T any]() any {
10
schema, err := SchemaFor[T]()
11
if
err != nil {
12
panic(err)
13
}
14
return
schema
15
}
16
17
func
SchemaFor[T any]() (any, error) {
18
schema, err := jsonschema.For[T](&jsonschema.ForOptions{})
Callers
3
Tools
Method · 0.92
Tools
Method · 0.92
Tools
Method · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected