0.1.6 • Published 1 month ago

@haxo-cz/tsoa-spu v0.1.6

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

tsoa-base-service

Základní service pro tsoa - CRUD

Errors

InputValidationError

//insert into app.ts
if (err instanceof InputValidationError) {
    return res.status(err.status).json({
        message: err.message,
        details: err.fields,
    });
}

Použití:

throw new InputValidationError("Your input is not valid.");

nebo:

throw new InputValidationError("Your input is not valid.", 400, { type: "SomeType", code: "SomeCode" });
0.1.6

1 month ago

0.1.5

1 month ago

0.2.1

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.0.1

6 months ago