-
Notifications
You must be signed in to change notification settings - Fork 743
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
Documentation for operation groups #289
Comments
Hmm... why not have the documentation contain the markdown content that would be displayed in MSDN? |
But where would it go? You can't attach documentation to enum labels or operation groups anymore. For example, here is how the C# code for a simple enum used to look before AutoRest:
Here is how it looks with AutoRest:
The missing /// comments mean missing documentation when it gets published to MSDN, and also missing Intellisense tooltips in Visual Studio. The docs are missing because they're not in the Swagger spec (because there's nowhere in the Swagger spec to put them). |
Here's the relevant Swagger discussion for documenting enum labels: OAI/OpenAPI-Specification#348 |
+1 |
+1 to this |
Documentation for enum values is a thing now as such: x-ms-enum:
name: <name for generated type>
modelAsString: true|false
values: <array of one or more enum-values:>
- value: <wire-value>
description: <description of that value>
name: <generated enum member name (defaults to ‘value’)> It was implemented by #2308 I've changed the title of this issue accordingly. |
Adding operation group docs to vNext design |
Currently there is no place in Swagger specs to add documentation for enum labels or operation groups. The end result is missing documentation in the generated code. For example, the operation group property
ISearchManagementClient.Services
used to have a comment and URL that referred to the corresponding section of the REST API docs on MSDN, but there is no home for this documentation in the Swagger spec.Our users deserve awesome docs. We should consider a Swagger extension for adding documentation for operation groups and enum labels (also URL references; see related issue: #288).
The text was updated successfully, but these errors were encountered: