ad-on-is / adonis-autoswagger

Auto-Generate swagger docs for AdonisJS
MIT License
116 stars 38 forks source link

Models not found on nested structure not at first level #100

Closed sanchric-forvia closed 3 months ago

sanchric-forvia commented 3 months ago

On a project, models are at this kind of route

app/models/example/v1_0/model.ts

the get files function was runnig asyn on depper levels, causing race conditions and returning and empty result, my quick fix was add await on recursive get files

image

ad-on-is commented 3 months ago

Oh.. thx... I forgot to put an await in there.

Fixed in 3.50.0!