When adding an IsInstanceOfValidator using admin UI, I receive an error that "className" is a required field. However, only "classname" (all lower case) is available in the UI.
Current behavior
UI displays "Error During the API Communication" when attempting to save the added validator. Exacerbating the problem, the actual error of 'Service with name "Laminas\Validator\IsInstanceOf" could not be created. Reason: Missing option "className"' is only viewable in the response payload.
How to reproduce
Add a field to an API service
Add a validator of type IsInstanceOf
Put in any value for "classname" and Save
Expected behavior
API management UI should specify "className" instead of "classname"
also
Specific validation (and other) messages should be displayed to the user when available instead of generate "API Communication" or "Error saving field" kind of notifications.
More Info
To confirm this is the issue, in the browser's network tab, I updated the payload of:
Bug Report
api-tools v 1.4.1 laminas-validator 2.13.4
Summary
When adding an IsInstanceOfValidator using admin UI, I receive an error that "className" is a required field. However, only "classname" (all lower case) is available in the UI.
Current behavior
UI displays "Error During the API Communication" when attempting to save the added validator. Exacerbating the problem, the actual error of 'Service with name "Laminas\Validator\IsInstanceOf" could not be created. Reason: Missing option "className"' is only viewable in the response payload.
How to reproduce
Expected behavior
API management UI should specify "className" instead of "classname"
also
Specific validation (and other) messages should be displayed to the user when available instead of generate "API Communication" or "Error saving field" kind of notifications.
More Info
To confirm this is the issue, in the browser's network tab, I updated the payload of:
to...
with the only change being the case of "className" vs. "classname" -- and the call succeeded.
I'm attaching a screenshot and HARs of the failed and succeeded calls. bug-info.zip