mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
feat: improve monorepo dev experience
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {ValidationError} from '@openstapps/core-tools';
|
||||
import {StatusCodes} from 'http-status-codes';
|
||||
import {SCError} from '../error.js';
|
||||
|
||||
@@ -24,14 +23,14 @@ export class SCValidationErrorResponse extends SCError {
|
||||
/**
|
||||
* List of validatation errors
|
||||
*/
|
||||
additionalData: ValidationError[];
|
||||
additionalData: unknown[]; // TODO
|
||||
|
||||
/**
|
||||
* Create a SCValidationErrorResponse
|
||||
* @param errors List of validation errors
|
||||
* @param stack Set to true if a stack trace should be created
|
||||
*/
|
||||
constructor(errors: ValidationError[], stack?: boolean) {
|
||||
constructor(errors: unknown[] /* TODO */, stack?: boolean) {
|
||||
super('ValidationError', 'Validation of request failed', StatusCodes.BAD_REQUEST, stack);
|
||||
this.additionalData = errors;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user