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

Discussion #1

Open
RicoSuter opened this issue Oct 22, 2017 · 26 comments
Open

Discussion #1

RicoSuter opened this issue Oct 22, 2017 · 26 comments

Comments

@RicoSuter
Copy link
Owner

No description provided.

@Ppiwow
Copy link

Ppiwow commented Jul 4, 2018

hi,

Have a question. Your approach not includes subclasses of abstract class i used in hub as a parameter.

Could you help me and point me to the documentation how to include subclasses?

@RicoSuter
Copy link
Owner Author

The project uses NJsonSchema under the hood (same as NSwag), I think this would help you: https://github.com/RSuter/NJsonSchema/wiki/Inheritance

@RicoSuter
Copy link
Owner Author

Is SignalR using Newtonsoft.Json to serialize params and responses?

@Ppiwow
Copy link

Ppiwow commented Jul 4, 2018

thanks for help. Adding attribute was just enough and now everything is generated in spec.

@Repsakk
Copy link

Repsakk commented Aug 9, 2018

Can generated Json be used with Swagger-UI to "pretty print" documentation? How?

@RicoSuter
Copy link
Owner Author

@Repsakk The generated JSON is not OpenAPI/Swagger so it cannot be used in Swagger UI... I don't see a way to describe a SignalR endpoint with OpenAPI/Swagger...

@Ppiwow
Copy link

Ppiwow commented Aug 9, 2018 via email

@RicoSuter
Copy link
Owner Author

@Ppiwow just keep in mind that this whole project is experimental and just a proof of concept :-)

@Ppiwow
Copy link

Ppiwow commented Aug 9, 2018 via email

@Alamaster99
Copy link
Contributor

Hi,
I am trying to generate TypeScript for more than one Hub and the only problem is, that in the output .ts file, there are duplicate import directions like this:
import { HubConnection, IStreamResult } from "@aspnet/signalr"

There is one for each of the hubs. Could you please point me in a direction how to avoid this?
Thanks!

@RicoSuter
Copy link
Owner Author

@Alamaster99 this is currently a bug, as this template is repeated for each hub:
https://github.com/RSuter/SigSpec/blob/master/src/SigSpec.CodeGeneration.TypeScript/Templates/Hub.liquid

Please create a new issue for that bug...

@bradygaster
Copy link

This is an interesting project. I'd like to see a demo of it or meet with you to get ideas and your aspirations on future ideas. Any chance you'd have time for a sync?

@RicoSuter
Copy link
Owner Author

RicoSuter commented Mar 12, 2019

@bradygaster Right now this is just a prototype/experiment project based on the work I did for NSwag and NJsonSchema... there is still a lot of stuff missing (e.g. tooling, C# client gen, an API UI, etc.). I'll be at the MVP Summit next week, we could meet there...

@RicoSuter
Copy link
Owner Author

RicoSuter commented Mar 12, 2019

@bradygaster for a "demo", clone the repo and start the SigSpec.Console - it will output all generated artifacts based on the hub of the sample SignalR project in the solution.

@austinsc
Copy link
Contributor

Are you interested in Redux action/actioncreator generator templates (js) to add into the SigSpec project?

@bradygaster
Copy link

Yes, @RSuter i'll be at MVP next week and would love to meet up for a demo. Mind carving out some time to sync up during Summit?

@RicoSuter
Copy link
Owner Author

@bradygaster sure, i’m flexible, will ping you via twitter when i’m there...

@RicoSuter
Copy link
Owner Author

RicoSuter commented Mar 15, 2019

Are you interested in Redux action/actioncreator generator templates (js) to add into the SigSpec project?

I think it’s better to keep this ui framework independent and add extension methods to enhance with own templates... or at least there should be a vanilla js impl and on top of that an optional redux gen?

@beorosz
Copy link
Contributor

beorosz commented Sep 9, 2019

I am trying to generate the TS client from my Hub class. My intention is to separate the specification and the TS client generation. For this, I splitted the example app (SigSpec.Console) into two apps. The spec generation and serialization part works okay, but when I try to deserialize the spec file back into a SigSpecDocument, a StackOverflowException occurs. Have you bumped a problem like this?

@beorosz
Copy link
Contributor

beorosz commented Sep 20, 2019

I am trying to generate the TS client from my Hub class. My intention is to separate the specification and the TS client generation. For this, I splitted the example app (SigSpec.Console) into two apps. The spec generation and serialization part works okay, but when I try to deserialize the spec file back into a SigSpecDocument, a StackOverflowException occurs. Have you bumped a problem like this?

I filed a PR fixing this issue (#19). Could you please review it? Thanks.

@asadcr
Copy link

asadcr commented Sep 6, 2020

Interesting project, any chance the JSON can be modified and can be served by Swagger ?

@RicoSuter
Copy link
Owner Author

Modified how?
Its a completely different spec than swagger so it would need its own ui etc.. see pr

@Alex-Horlock
Copy link

I think this is a great project and would love it to be as easy as NSWAG is... a simple default UI would be great (appreciate this is not easy, just wanted to give support) ... do you have a crowdfunding project perhaps?

@RicoSuter
Copy link
Owner Author

RicoSuter commented Jun 3, 2021

simple default UI

You mean a web UI like "Swagger UI" or the NSwagStudio UI? :-)
NSwag is a huge project - offering all of it for SigSpec would be a lot of work - and it's even more than NSwag as the "Swagger UI" part would be part of SigSpec...

(appreciate this is not easy, just wanted to give support) ... do you have a crowdfunding project perhaps?

Currently I do not actively develop it, main reason is that I do not use it - not for own projects and also not professionally... so it's quite hard to justify to work in it in my free time (and there is already a lot to do for NSwag/NJsonSchema which are much more used).

@Alex-Horlock
Copy link

Sorry i wasn't clear. I would like it to output a webpage like Swagger ui so that my users can see the methods available on the signal r hub. I think for now I can use the json output to render something simple and effective.

Sure, i get that... feel there must be other people like me though so thought I would register my interest on here. Thanks

@RicoSuter
Copy link
Owner Author

RicoSuter commented Jun 3, 2021

@dovjar started on such a UI: #41

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

No branches or pull requests

9 participants