-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[CSharp] Add auto-generated CSharp documentation in Markdown #2595
Conversation
@KevinGlinski thanks for the PR :) Shall we keep the navigation links to different sections (models, list of apis, etc) to make it easier for developers to jump to different sections in the doc? |
@KevinGlinski also if you've time, I wonder if you can help update the README as well. |
should be good to go now |
@Kesh92 thanks Kevin. I used git_push.sh to upload the C# SDK to https://github.com/wing328/petstore-csharp/blob/master/README.md#documentation-for-models As you can see, there's a minor issue with the hyperlink text to the models. May I know if you've cycle to fix it ? Or I can file another PR to address that after merging this one? |
@wing328 I haven't looked at the doc generation stuff yet. Is there a switch on CLI that opts-out of doc generation? One problem I could see is if an api uses a namespace versioning strategy. For example, rather than host versions of an API separately, special routing or delegation is used per version and models are namespaced/packaged for example as
I don't think those are blockers for this PR, though. |
@jimschubert currently, there's no CLI switch to ops-out the doc generation and thanks for pointing about the potential issue with complex model namespaces. I prefer (1) to begin with so that documentations are generated by default and users can use the CLI switch to opt it out. For (2), we can consider that as a day-2 requirement with low priority. I'll create a task for tracking the CLI switch to opt-out the doc generation. |
@Kesh92 thanks again for the PR. I'l submit another PR to make some minor enhancements/bug fixes. |
@jimschubert , @wing328 i was updating from the v2.1.4 release and was caught off guard a little by the doc changes. we were using yard for ruby, jsdoc for js and doxygen for c#, python and java and we'll be moving to using the swagger doc because then it gives us a consistent format between languages on our developer site. My biggest problem was that the generation was a little too much. We already had a .gitignore and readme.md and then they were blown away by the generation, so feature toggles would be nice in situations like this. |
@KevinGlinski thanks for the feedback, which is similar to this one: #1956 (comment) We plan to implement a .swagger-codegen-ignore file (similar to .gitignore) so that users can put down files that should not be overwritten as part of the code generation. Would this help to resolve the issue you're facing? |
No description provided.