Open chladnefazole opened 2 months ago
This works for me... Change your {object} in the Example definition to the actual definition of SomeObj
/**
* @typedef {object} SomeObj
* @property {number} id
* @property {string} name
* @property {number} age
*/
/**
* @typedef {object} Example
* @property {number} id
* @property {string} name
* @property {SomeObj} someObj
*/
Describe the bug Nested object schema definitions don't work.
To Reproduce For example, I have interface:
I represent it like this:
Expected behavior example.someObj should show as an OBJECT containing some number properties.
Instead I get:![image](https://github.com/BRIKEV/express-jsdoc-swagger/assets/28662715/f9034813-4e21-4d0e-b63a-e4e32d608845)
ie. example.someObj is shown to have type number, and its description is not the one I set for it (Object containing properties), but instead it shows the description of someObj's last property (Property 2)
Desktop (please complete the following information):