Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Typia Support to nest js event patterns and message patterns #433

Open
denniarems opened this issue Jun 30, 2023 · 7 comments
Open

Add Typia Support to nest js event patterns and message patterns #433

denniarems opened this issue Jun 30, 2023 · 7 comments
Assignees
Labels
question Further information is requested

Comments

@denniarems
Copy link

query on main repo
samchon/typia#697

currently nestia supports only or rest api (get,post,put ....)
but nest also have microservice decorators Link

@MessagePattern
@EventPattern

it will be very helpfull for add typia decorater support for this two...

@samchon
Copy link
Owner

samchon commented Jul 3, 2023

Can you show me an example and detailed feature what you want?

@samchon samchon self-assigned this Jul 3, 2023
@samchon samchon added the question Further information is requested label Jul 3, 2023
@denniarems
Copy link
Author

denniarems commented Jul 4, 2023 via email

@denniarems
Copy link
Author

denniarems commented Jul 4, 2023

So in here sending an event to microservice
image
and listens the event on microservice
image

there is not type validation support for @MessagePattern and @EventPattern.
we can make something like @TypedMicroCalls.Message and @TypedMicroCalls.Event right ?
to make validations on both ends ?
like SDK generator for clients...

@samchon
Copy link
Owner

samchon commented Jul 24, 2023

Can you suggest a well-designed interface about that in @nestia/fetcher and generated SDK side?

@jmroon
Copy link

jmroon commented Oct 3, 2023

@denniarems you can just write a wrapper decorator for messagepattern which takes in a typia assertion function. I don't think there's any need for nestia to implement this

@samchon
Copy link
Owner

samchon commented Oct 3, 2023

@jmroon Thanks for replying. @denniarems Do you agree?

@bemyduo-admin
Copy link

@samchon @jmroon Can you give an example of what this wrapper decorator would look like? Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants