feathersjs-ecosystem / feathers-swagger

Add documentation to your FeatherJS services and feed them to Swagger UI.
MIT License
226 stars 63 forks source link

Remove allowedDefaultRefs #255

Open AshotN opened 11 months ago

AshotN commented 11 months ago

Summary

Currently, if you wish to document a custom method. You have to manually link the ref like this

createSwaggerServiceOptions({
  schemas: { userApproveSchema }
  docs: {
    refs: {
      userApproveRequest: userApproveSchema.$id
    }
  }
})

This PR removes the check that makes that necessary, and custom method Request and Response schemas can be referenced automatically.