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

Static API documentation does not link to Models

Open gorgonblot opened this issue 12 years ago • 1 comments

For an API Operation, the Parameters and Response Type try to hyperlink to the HTML description of the corresponding Model (for non-primitive types). The href is specified only with a "#" that doesn't resolve to the actual Model html file. To reproduce:

./sbt assembly ./bin/static-docs.sh firefox ./samples/swagger-static-docs/docs/index.html click on the "updateUser" API There is a parameter "User" which is a hyperlink. Click on User and note that the link is just to "#". The desired behavior is for it to display the contents from ./models/User.html file.

Perhaps this is a known issue as the operation.mustache file doesn't seem to be doing anything special to set the href appropriately:

{{paramName}} : {{#complexType}} 
{{dataType}}{{/complexType}}{{#simpleType}}{{dataType}}{{/simpleType}} ({{type}})

Am I missing something to get this to work?

gorgonblot avatar Sep 08 '14 18:09 gorgonblot

please update to the develop_2.0 spec and you should have this working fine.

fehguy avatar Dec 24 '14 04:12 fehguy