-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Missing validation on factory endpoints (LLM, embedder, auth) #767
Comments
Having a basic validation could be useful Thanks and welcome ;) |
Thanks @pieroit for confirming that this is probably not expected. I'm not sure how this settings should be used. Is the name mandatory? What about category or the value? IMO at least the name and the value should not be empty, but I don't know if also the category should be mandatory. |
They should be used freestyle, so we can impose a minimal validation without restricting freedom (as a framework sould do).
let's make all of them non null/empty I may add the tests for this if you don't feel like it, because they are long due (my bad). |
Simple pydantic validation rules could be added in the crud model, wdyt? |
/settings
endpoint
Describe the bug
It seems possible to create a completely empty setting (with blank name, blank category and empty value) in the
POST /settings
endpoint:result:
Expected behavior
Maybe it's the expected behavior but I'm not sure if at least the name should be verified, or all the three fields.
The text was updated successfully, but these errors were encountered: