ad-on-is / adonis-autoswagger

Auto-Generate swagger docs for AdonisJS
MIT License
97 stars 32 forks source link

"json.properties is not iterable" error when generating #103

Open oanylund opened 1 week ago

oanylund commented 1 week ago
json.properties is not iterable
          at ValidatorParser.parseSchema (/.../node_modules/adonis-autoswagger/dist/parsers.js:705:29)

This seems to be introduced with the new validator feature. looking at the json object there is an each property that has a properties array. If i patch the code to use the each property, it generates successfully

Adonis core version: 6.12.0 Vine version: 2.1.0

ad-on-is commented 3 days ago

What exactly did you change and where? Also, under what circumstances does that happen? Could you provide more info?