Closed yeefan closed 3 years ago
Hey @yeefan ,
I've tested with your DTO, and I have descriptions (you just need to expand the item's details):
(Tested with the latest commits from oatpp
and oatpp-swagger
)
Please let me know if it still doesn't work for you.
Regards, Leonid
I'm sorry, I should have checked the master branch before filing this issue. Let me look at the master branch later. (Descriptions for "non-primitive" fields certainly aren't there in the 1.1.0 release.)
No problem. You are right, these improvements were added after the 1.1.0 release
Closing the issue...
I am using Oat++ 1.1.0. Take the
example-crud
program, and modify theUserDto
to become the following:Compile the program and run it. Go to the Swagger UI page and expand the schema for
UserDto
. I could see the field descriptions forid
,first-name
, andlast-name
, which are "primitive" fields. However, I cannot see the field descriptions for thefriends
,enemies
, andsub-user
, which are "non-primitive" fields containing aVector
,List
, and another DTO respectively. Is this a bug? Thanks.