hexthedev / OpenAi-Api-Unity

Integration for the OpenAi Api in Unity
MIT License
327 stars 71 forks source link

Required parameters not validated #38

Open hexthedev opened 3 years ago

hexthedev commented 3 years ago

Right now, all JSON models for api bodies are not validated, so it's easy to provide invalid input that returns a 400.

A good example is in calls that either require a document or a field as input.

Should add validation to call request constructors to warn developers about the correct way to construct request calls.