Documentation
¶
Overview ¶
Package toolschema rejects tool inputs whose object keys the Go decoder and a case-sensitive reader resolve differently.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateUnambiguous ¶
ValidateUnambiguous reports an error when input holds an object key that encoding/json folds into a declared property but a case-sensitive reader treats as distinct, or when one object repeats a key. Either lets code inspecting the raw input read one value while the tool executes another.
properties is a fantasy ToolInfo.Parameters map, keyed by property name. Keys matching no property are ignored because a generated struct decoder drops them. A tool with a hand-written decoder that reads undeclared keys has to reject ambiguous spellings of those keys itself.
Types ¶
This section is empty.