RicoSuter / SigSpec

Specification and code generator for SignalR Core.
MIT License
159 stars 37 forks source link

Compatibility with NSwagStudio #21

Open Bilal-Nectari opened 4 years ago

Bilal-Nectari commented 4 years ago

Is it possible to have this tool compatible/integrated with NSwagStudio?

We can reference the API endpoint and then it scans for all the available hubs in the API and generate the typescript contract.

Thanks!

RicoSuter commented 4 years ago

I think it makes sense to add some sort of CLI support.

To avoid the tooling headaches I have with NSwag, I think it would be better to support this with a project integration (package) so that you can run your project with a special command, eg

dotnet run yourproj.csproj —mode sigspec —output sigspec.json

What do you think?

But it means you’d need to add a pkg to your project which handles this mode