-
Notifications
You must be signed in to change notification settings - Fork 156
[BUG] model interface validation failed when there is integer within text #3758
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
Comments
The error is thrown from this method:
This relies on a dependency https://github.com/networknt/json-schema-validator . But that seems to properly handle strings containing numbers. I suspect the Jackson ObjectMapper is stripping the quotes to get
This seems related but in the opposite direction, still it points to some config that can be changed: FasterXML/jackson-databind#796 |
Actually, here's where it's being converted to a number:
That method is called prior to passing it to validation. |
Proposed fix: #3761 |
What is the bug?
That’s a bug in model interface when there is number within the text field, it has false negative evaluation showing it's expected string, but got integer in the field
How can one reproduce the bug?
here is the configs:
connector setting
model interface
predict call
here is the exception message:
another predict failing payload
same exception message
What is the expected behavior?
the model interface for the input validation should pass
What is your host/environment?
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: