jotamorais on master
Fixed typo in CHANGELOG > `Exp… Merge pull request #521 from sl… (compare)
I’m working on Microservices Solution and I must create a testing layer with Mocha.
I’m trying to understand: https://github.com/typestack/routing-controllers/blob/master/test/functional/json-controller-methods.spec.ts
I can’t undestand why file has: JsonUserController and this controller is never used ?
I am trying to use the
class-transformers in combination with
routing-controllers to have automatic deserialization of JSON payload to TS class instances.
The thing is the 'transform-logic' in
@Transform is not picked up. The function I am passing is not called at all. When I am testing it with
plainToClass(Class, json) its working just fine.
Is this supposed to actually work and I just got my setup wrong?
Thanks for helping! Cheers
First of all, I'd like to thank @pleerock, @NoNameProvided, @MichalLytek and so many others that contributed (and still contribute) to this awesome project.
After a huge hiatus, I think now we have enough engagement to keep this project alive - I've been granted access and will be able to contribute (and to review and accept everybody's contribution).
I'd like to call the community for help on ideas to prioritize, better manage communication and expectations.
I think it's paramount that we focus on the open PRs and issues and bring the project to a "stable" release as soon as possible. From there, we will then be able to plan and work to add features and keep on a more steady pace for the bug fixes.
Thank you and welcome again :)
"@gritcode/routing-controllers": "^0.7.9"as it solves the bug from here: typestack/routing-controllers#384 - there is a PR for that as well (thanks to @adenhertog)
I think I'm having issues with routing-controllers-openapi but I'm yet to confirm as it's still not clear whether it's something with my code or the changes on routing-controllers v.0.8.0
typestack/routing-controllers#492 - anyone experienced with the project know how to register custom middleware right before controller action, but after authorization/currentUser checkers?
@UseBefore is registering custom middleware before checkers, so we have no context to req.user for example
routing-controllers-openapi, a co-worker made a fork recently for our internal use, to my knowledge it's extended to handle custom types from typeorm as well - https://github.com/Pravv/typestack-openapi. While I cannot vouch for the code quality, it may suit your needs.
hey folks, nice to see some movement, out of frustration I started my own fork some time ago at https://github.com/flyacts/routing-controllers
One feature I needed and implemented is the
@FormField decorator for supporting multipart form field stuff. Will try to see if I find time to submit a pull request and will see what other features have lurked into my fork that I can contribute back.
@michalpaukert Something like this: https://github.com/flyacts/backend/blob/master/packages/core/src/backend.ts#L60
This works pretty well, but you can also specify the response for complex cases in this way: https://github.com/flyacts/backend/blob/master/packages/create-backend/template/src/controllers/user.controller.ts#L144