OpenMetadata/openmetadata-service
Esmaeil Chitgar 744a3d403f
add automate exception message for invalid enum value as api request parameter (#12400)
* add exception Message for invalid enum value

when enum value is incorrect in api call, this method generates the exactly message as we expect. for example the Include.java in databaseServiceResource.java list() api.

* add an example for invalid enum value as unit test for databaseServiceResource class.

A unit test example that shows how to use invalidEnumValue() method instead of traditional way i.e. writing plain string.

* apply google-formatter

* Merge branch 'EsmaeilChitgar-AddExceptionMessageForInvalidEnumValue' of https://github.com/EsmaeilChitgar/OpenMetadata into EsmaeilChitgar-AddExceptionMessageForInvalidEnumValue

* fix reported issues in pull request

---------

Co-authored-by: Sriharsha Chintalapani <harshach@users.noreply.github.com>
2023-08-01 22:52:48 -07:00
..