feathersjs-ecosystem / feathers-swagger

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

fix: don't mutate original schemas #261

Open AshotN opened 4 months ago

AshotN commented 4 months ago

Summary

Swagger mutates schemas internally, ~this caused a problem for me where it modified my Type.Date() into a Type.String()~

EDIT: My issue was caused by a poor patch I had made. Non the less, I think the change is still valid. As the defaultTransformSchema function does mutate as well.

Other Information

This shouldn't impact anyone in a negative way, my Swagger file did not change after the modification.