ad-on-is / adonis-autoswagger

Auto-Generate swagger docs for AdonisJS
MIT License
129 stars 41 forks source link

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

Closed sanchric-forvia closed 4 months ago

sanchric-forvia commented 4 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 4 months ago

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

Fixed in 3.50.0!