ad-on-is / adonis-autoswagger

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

Model and interfaces not found on windows environment adonisjs 6 #97

Closed sanchric-forvia closed 3 months ago

sanchric-forvia commented 3 months ago

After install and configure the package, model was not loaded using custom path on package.json

for example

image

After debug on getModels and getInterfaces there is a condition that replace the path in case custom path

image

but as windows the path split character is '\' not found a match to replace, my quick fix was add another line to replace looking for '\'

image

I hope this can be fix on next version

Note: Could be great if the custom paths not depends of package.json and set better on config as an array of path to check

ad-on-is commented 3 months ago

Oh thx for that... Will add a fix The custom paths MUST depend on the package.json, since it's how adonisJS handles them too.

ad-on-is commented 3 months ago

Should be fixed in the latedt version

sanchric-forvia commented 3 months ago

Excellent service 5 stars :D, this is great thanks !!!!!