0.3.0 • Published 10 months ago

@haxo-cz/tsoa-spu v0.3.0

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months 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.3.0

10 months ago

0.2.0

1 year ago

0.2.2

1 year ago

0.2.5

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.2.1

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.1

2 years ago