Files
shields/core
jNullj d64eda3e41 Add routeEnum with validation and enhance error handling in BaseService [Twitter Gem TeamCity Packagist MozillaObservatory HexPm Greasyfork] (#11800)
* add base service routeEnum

* enhance error handling in BaseService for invalid parameters

* check for pattern for routeEnum as well to be used

* validate routeEnum in BaseService to ensure it is a non-empty array of strings

* add routeEnum validation and handling in BaseService tests

* refactor route pattern in GemDownloads to use routeEnum

* add routeEnum to redirector

* refactor route pattern in TeamCityBuild use routeEnum

* refactor TwitterUrlRedirect route pattern to use routeEnum

* refactor PackagistDownloads route pattern to use routeEnum

* refactor MozillaObservatory route pattern to use routeEnum

* refactor HexPmDownloads route pattern to use routeEnum

* refactor GreasyForkInstalls route pattern to use routeEnum

* refactor documentation to include routeEnum support and examples

* remove @type tag description for routeEnum

* refactor getBadgeExampleCall to support routeEnum for path parameters

* refactor BaseService to support routeEnum for dynamic route registration

* fix: correct enum route registration

firstParamName was used as litteral string insted of evaludating the value of the actual firstParamName extracted beforehand.

* fix: remove duplicated text

* fix: doc identation

* fix: robust enumParam extraction in getBadgeExampleCall

* docs: add comment about url conventions in `routeEnum`

* docs: simplify `routeEnum` doc

* docs: move route points
2026-08-01 23:20:48 +03:00
..