-
Notifications
You must be signed in to change notification settings - Fork 37
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
Comments
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? |
The project uses NJsonSchema under the hood (same as NSwag), I think this would help you: https://github.com/RSuter/NJsonSchema/wiki/Inheritance |
Is SignalR using Newtonsoft.Json to serialize params and responses? |
thanks for help. Adding attribute was just enough and now everything is generated in spec. |
Can generated Json be used with Swagger-UI to "pretty print" documentation? How? |
@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... |
I handled it.
Just need to generate json, save it somewhere and add it as endpoint. Not
auto generated but still possible to display it in more human form
czw., 9 sie 2018 o 11:46 Rico Suter <[email protected]> napisał(a):
… @Repsakk <https://github.com/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...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/Am7o9bqOu4i2k8jXnKogyMu5Po7fx9xAks5uPAUKgaJpZM4QCADD>
.
--
Z poważaniem
Paweł Piwowarczyk
|
@Ppiwow just keep in mind that this whole project is experimental and just a proof of concept :-) |
I know, but still really helpfull :)
Cheers
czw., 9 sie 2018 o 13:37 Rico Suter <[email protected]> napisał(a):
… @Ppiwow <https://github.com/Ppiwow> just keep in mind that this whole
project is experimental and just a proof of concept :-)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/Am7o9R5lxM-lk2IehBIclsTlHB_0-O7Eks5uPB70gaJpZM4QCADD>
.
--
Z poważaniem
Paweł Piwowarczyk
|
Hi, There is one for each of the hubs. Could you please point me in a direction how to avoid this? |
@Alamaster99 this is currently a bug, as this template is repeated for each hub: Please create a new issue for that bug... |
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? |
@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... |
@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. |
Are you interested in Redux action/actioncreator generator templates (js) to add into the SigSpec project? |
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? |
@bradygaster sure, i’m flexible, will ping you via twitter when i’m there... |
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? |
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. |
Interesting project, any chance the JSON can be modified and can be served by Swagger ? |
Modified how? |
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? |
You mean a web UI like "Swagger UI" or the NSwagStudio UI? :-)
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). |
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 |
No description provided.
The text was updated successfully, but these errors were encountered: