externalDocs property not rendered in swagger-ui?
Hi,
I have learned of a schema object - externalDoc - here (https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#externalDocumentationObject). However, the generated HTML, either via swagger2-editor or swagger-ui, does not seem to give any consideration towards this object.
Am I missing something? This schema object being considered for any specific use?
I'd like to ask for this property to be rendered in swagger-ui so that we can provide a more complete documentation to our service implementation team and our clients.
Thanks, Mike
Is this implemented now and available in new release? Thanks.
@tshah010 - not yet. This issue is marked for M2 which is the next release cycle.
Thanks @webron , when is the next release cycle?
About 3-4 weeks. Keep in mind this feature is slated to M2 but could be delayed. Obviously, PRs are always appreciated :)
Related: #1000
Duplicate of https://github.com/swagger-api/swagger-ui/issues/608
There is definitely a lot of interest in ExternalDocs at the API/file, resource and method levels. I would like to see the JSON Schema place these in the three levels or more if anyone can think of a case for them. I am looking to refer to static HTML pages for example API conventions, but a more general facility to link to other non-swagger documentation that become a part of swagger-ui once its generated makes sense.
@stevendearborn - there's a "bug" in the current spec documentation (and as a result in the JSON Schema of the spec) that doesn't expose the externalDocs in all the locations it should. I hope to fix it soon and have it affect the tooling as well.
externalDocs is rendered only if it is placed in root document object. But it doesn't work in Operation object and Schema object. When would that feature be implemented?
@tshah010 I think that's probably what #1614 is about?
@dklotz & @tshah010: I also think that swagger-api/swagger-ui#1641 addresses the same issue.
is there a C# example on how to add externalDocs?