Open fredsa opened 6 months ago
Isn't that something the service should do, not the client? The client generally tries to do minimal validation or manipulation of requests to the service.
That would be fine as well. Though, I suspect it will be easier for the client library / SDK to provide a much more useful message to the developer, though admittedly at the cost of duplicate complexity across all language client libraries / SDKs.
In short, happy to have the validation happen in either place.
Using github.com/google/generative-ai-go
v0.11.0
, this code does not complain about the"this_param_does_not_exist"
entry in theRequired
field.To help developers, it would be immensely valuable to validate the
Required
field values.