3. Start server and go to `/docs` page
## Expected result
Type is shown correctly
![image](https://github.com/user-attachments/assets/1c9ca1ab-fefe-40f6-a8b6-d06e7a688202)
## Actual result
Type is empty object
![image](https://github.com/user-attachments/assets/728f6b3e-9074-4ca1-a809-5ec1fd0f6ba4)
Description:
When using validator for reponseBody, it is not generating responseBody type when result object has only integer properties.
How to reproduce:
app/controllers/salons_controller.ts
(don't forget to define route to it):export default class SalonsController { /**
@responseBody 200 -
*/
async deleteByUserId({ request }: HttpContext) {
const salon = { id: 1 }
return await salonDeleteByUserIdResponse.validate({ salon: { id: salon.id, }, }) } }
import vine from '@vinejs/vine'
export const salonDeleteByUserIdResponse = vine.compile( vine.object({ salon: vine.object({ id: vine.number(), }), }) )