mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-08 16:23:12 +08:00
Created middleware to keep backwards compatibility on errors when using v1 and 2 of the API
This commit is contained in:
@@ -21,7 +21,7 @@ class ValidationException extends InvalidArgumentException implements ProblemDet
|
||||
use CommonProblemDetailsExceptionTrait;
|
||||
|
||||
private const TITLE = 'Invalid data';
|
||||
private const TYPE = 'INVALID_ARGUMENT';
|
||||
public const TYPE = 'https://shlink.io/api/error/invalid-data';
|
||||
|
||||
private array $invalidElements;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user