Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't mutate original schemas #261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AshotN
Copy link
Contributor

@AshotN AshotN commented Apr 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant