ad-on-is / adonis-autoswagger

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

fix: custom paths replacement #86

Closed Timahi closed 1 month ago

Timahi commented 1 month ago

Changed this:

if (typeof this.customPaths["#models"] !== "undefined") {
  // it's v6
  p6.replaceAll("app/models", this.customPaths["#models"]);
}

to this:

if (typeof this.customPaths["#models"] !== "undefined") {
  // it's v6
  p6 = p6.replaceAll("app/models", this.customPaths["#models"]);
}

so the p6 path resolve to the good custom path (same for getInterfaces())