TongchengOpenSource / smart-doc

Smart-doc is a java restful api document generation tool. Smart-doc is based on interface source code analysis to generate interface documentation, completely zero-injection.
https://smart-doc-group.github.io/#/
Apache License 2.0
1.36k stars 269 forks source link

Abstract class not work #375

Open bigmother opened 1 year ago

bigmother commented 1 year ago

It cant generate the subClass's fields in html when abstract class as controller's parameter. Has any idea to support the scene?Because there are Models to show the subClass's fields when i use swagger. but now i can't see any subClass information.

shalousun commented 1 year ago

What version are you using? Can you give us a use case

bigmother commented 1 year ago

> What version are you using? Can you give us a use case

I use the smart-doc-maven-plugin:2.5.3. eg. I have parentClass DataSource,and subClass Mysql,Oralce,PostgreSql. My controller's parameter is DataSource. In AllInOne doc, there is only DataSource's fields. I can't get any infomation about subClass Mysql or Oracle.

shalousun commented 1 year ago

> What version are you using? Can you give us a use case

I use the smart-doc-maven-plugin:2.5.3. eg. I have parentClass DataSource,and subClass Mysql,Oralce,PostgreSql. My controller's parameter is DataSource. In AllInOne doc, there is only DataSource's fields. I can't get any infomation about subClass Mysql or Oracle.

This needs to involve a lot of changes to the display template, which will not be supported in the short term, and we are not good at dealing with html template design. Of course, if you have the skills in this area, we also welcome you to contribute a pull request

stayfunabc commented 1 month ago

Is this feature supported now?