Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:11
    github-actions[bot] locked #756
  • 00:11
    github-actions[bot] commented #756
  • Oct 17 20:07
    petertorelli labeled #790
  • Oct 17 20:07
    petertorelli labeled #790
  • Oct 17 20:06
    petertorelli opened #790
  • Oct 17 00:11
    github-actions[bot] locked #771
  • Oct 17 00:11
    github-actions[bot] commented #771
  • Oct 15 08:03

    dependabot[bot] on npm_and_yarn

    (compare)

  • Oct 15 08:03
    dependabot[bot] closed #788
  • Oct 15 08:03
    dependabot[bot] commented #788
  • Oct 15 08:03
    dependabot[bot] labeled #789
  • Oct 15 08:03
    dependabot[bot] opened #789
  • Oct 15 08:03

    dependabot[bot] on npm_and_yarn

    build(deps-dev): bump eslint-pl… (compare)

  • Oct 14 08:07

    dependabot[bot] on npm_and_yarn

    (compare)

  • Oct 14 08:07
    dependabot[bot] closed #786
  • Oct 14 08:07
    dependabot[bot] commented #786
  • Oct 14 08:07
    dependabot[bot] labeled #788
  • Oct 14 08:07
    dependabot[bot] opened #788
  • Oct 14 08:07

    dependabot[bot] on npm_and_yarn

    build(deps-dev): bump eslint-pl… (compare)

  • Oct 14 00:10
    github-actions[bot] locked #768
Jonathas Morais
@jotamorais
Version 0.8.0 is now published in NPM
please, help with tests and feedback
Matt Morgan
@elthrasher
:thumbsup: It's looking pretty good to me so far.
Jonathas Morais
@jotamorais

Great.

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

Matt Morgan
@elthrasher
Ah, I'm not using that. I have my own actually.
Always meant to publish it, but never had time to clean it up properly and then that guy beat me to it.
Pretty sure mine is working though.
Will check it.
Yeah, seems okay to me.
Jonathas Morais
@jotamorais
Good stuff. Mine is probably bad config on my side
wallopthecat
@wallopthecat
Thanks for picking up the project to maintain - excited to see movement again.

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

Matt Morgan
@elthrasher
Not sure anybody has an answer right now. Somebody will need to pop the hood and root around for some solution.
Arkadiusz Sygulski
@Aareksio
@jotamorais Could you please create and pin an issue about resurrecting the project - I'm pretty sure a lot of people would want to know and will miss it otherwise. As for 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.
Also a personal thanks for taking up the task of keeping this project afloat, even though unmaintained for long time, in my opinion it's still the best solution for those not wanting to use Nest
wallopthecat
@wallopthecat
Thanks
Tim
@enko

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.

Jonathas Morais
@jotamorais
@Aareksio Thanks for the suggestion. I was away for 2 weeks but I'm back and will continue working on PR and issues triage. I will pin an issue to make it visible and clearly communicate the current status of the project
@enko Thanks. It will be great if you could submit a PR - I've also had requests to implement something for multipart.
Michal Paukert
@michalpaukert
Hi, I have 2 questions
1) how should I implement some simple cache for specific controller
2) how to document controllers by swagger? I mean automatic from comments or something I do not want to write it manually
Matt Morgan
@elthrasher
Hey @michalpaukert you basically have to roll your own cache or use a library like this: https://github.com/rv-kip/express-redis-cache
There's no routing-controllers-ready cache that I'm aware of. I wrote my own decorator-based cache for my current employer, but it's proprietary. Maybe I'll open source something if I get around to it.
I also wrote my own swagger doc generator, which again is proprietary but fortunately you don't need to wait for me to open-source that.
Because others have had the same idea.
There are a few others.
Tim
@enko
Jacob Hougaard Bennedsen
@jacob-hougaard
Hello! I'm having a bit of trouble making the framework work with swagger. Following your example https://github.com/epiphone/routing-controllers-openapi/blob/master/sample/01-basic/UsersController.ts i can't get the swagger UI to display an example of my request body. Is anyone able to link me to a working example?
3 replies
Marek Acko Mizera
@mmizera
Hi. Is there any way to validate path parameters ? e.g. (@Param('userId') userId: number) will allow userId to be undefined or NaN (when I pass some random string)
2 replies
Lv777
@OBQun
hello! I have translated the document to chinese. how can I submit it?
6 replies
Matthew Adams
@matthewadams
Does @Controller support route parameters, like @Controller("/foos/:fooId/bars")?
1 reply
sravanthi gowrisetty
@sravanthigowrisetty_gitlab
hi, can i get example for implementing passportJWT using routing-controllers ?
Nipun Arora
@icancode23
Hi everyone
i am facing issue with auto validation for incoming requests with routing controllers. I see there are many issues still open for this . Is there any workaround for this?
iyuanfang
@iyuanfang
HI, how can i get data from form? I need to upload file,and post other field at the same time.
Moshe Bixenshpaner
@bmoshe

Hi guys, I have a weird case where one of my DTO objects has field of type any, openapi converts it to "$ref": "#/components/schemas/Object", which causes typegen to fail, because it doesn't recognize Object.

This field is only decorated with @IsObject()
What am I doing wrong here?

Tim
@tim:schumacher.im
[m]
I would suspect that openapi does not support any and is using object as a fallback
Moshe Bixenshpaner
@bmoshe
But typegen fails to generate code because of the use of Object.
coltrane
@ColtraneNadler
hia
Tim
@tim:schumacher.im
[m]
Hello
Hatem Ragab
@hatemragab
Hello
0xAFFE
@tim:schumacher.im
[m]
Heyho
Gentrit Abazi
@gentritabazi01
Hello Check This Starter Use "routing-controllers"
Ian Gregson
@iangregsondev

Hi everyone, the createExpressServer actually returns "any" in typescript. Is this correct ?

Whats the type is should be ? My IDE is complaining a lot.

Should it not be typed ?

0xAFFE
@tim:schumacher.im
[m]
IIRC its either an express application or something something koa
If you are using Express
import { Application } from 'express';
It is