swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

externalDocs property not rendered in swagger-ui?

Open mikeliucc opened this issue 12 years ago • 12 comments

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

mikeliucc avatar Oct 24 '14 03:10 mikeliucc

Is this implemented now and available in new release? Thanks.

tshah010-zz avatar Feb 03 '15 21:02 tshah010-zz

@tshah010 - not yet. This issue is marked for M2 which is the next release cycle.

webron avatar Feb 03 '15 21:02 webron

Thanks @webron , when is the next release cycle?

tshah010-zz avatar Feb 05 '15 22:02 tshah010-zz

About 3-4 weeks. Keep in mind this feature is slated to M2 but could be delayed. Obviously, PRs are always appreciated :)

webron avatar Feb 05 '15 23:02 webron

Related: #1000

mohsen1 avatar Mar 10 '15 04:03 mohsen1

Duplicate of https://github.com/swagger-api/swagger-ui/issues/608

mohsen1 avatar Mar 18 '15 21:03 mohsen1

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 avatar Apr 24 '15 18:04 stevendearborn

@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.

webron avatar Apr 26 '15 10:04 webron

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-zz avatar Mar 16 '16 21:03 tshah010-zz

@tshah010 I think that's probably what #1614 is about?

dklotz avatar Jul 27 '16 12:07 dklotz

@dklotz & @tshah010: I also think that swagger-api/swagger-ui#1641 addresses the same issue.

obfischer avatar Feb 02 '17 17:02 obfischer

is there a C# example on how to add externalDocs?

melghazali avatar Jan 06 '20 08:01 melghazali