jsonschema: unexport ForType (#71)

There's no evidence that it's needed.

Also, improve doc and error messages.
This commit is contained in:
Jonathan Amsterdam 2025-06-30 14:44:40 -04:00 • committed by GitHub
commit 2facfc6ffe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ or as a value of this type:
# Inference
The [For] and [ForType] functions return a [Schema] describing the given Go type.
The [For] function returns a [Schema] describing the given Go type.
The type cannot contain any function or channel types, and any map types must have a string key.
For example, calling For on the above Player type results in this schema: