Skip to content
New issue

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

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

Already on GitHub? # to your account

deprecated on non deprecated methods #852

Closed
i022098 opened this issue Jan 26, 2015 · 2 comments
Closed

deprecated on non deprecated methods #852

i022098 opened this issue Jan 26, 2015 · 2 comments
Milestone

Comments

@i022098
Copy link

i022098 commented Jan 26, 2015

Hello
the JSON that returns from the server states "deprecated":"false", and in the UI i got warning that the function is deprecated.
this is a bug.
in order to fix it, please change swagger-ui.js file and replace:

helpers['if'].call(depth0, depth0.deprecated -->
helpers['if'].call(depth0, depth0.deprecated == 'true'

this change the value from String to Boolean and fix the problem
Regards
i022098

@webron
Copy link
Contributor

webron commented Jan 26, 2015

Can you submit a PR for it?

@i022098
Copy link
Author

i022098 commented Jan 26, 2015

done

@i022098 i022098 closed this as completed Jan 26, 2015
@i022098 i022098 reopened this Jan 26, 2015
@fehguy fehguy modified the milestone: v2.1.0-M1 Jan 28, 2015
fehguy added a commit that referenced this issue Jan 30, 2015
@fehguy fehguy closed this as completed Jan 30, 2015
mjumbewu pushed a commit to mjumbewu/swagger-ui that referenced this issue Mar 7, 2015
Jonahss pushed a commit to eaze/swagger-ui that referenced this issue Aug 12, 2016
vincent-zurczak pushed a commit to roboconf/swagger-ui that referenced this issue Aug 18, 2016
JuanSW18 pushed a commit to Digital-Paw/digital-paw-swagger-ui that referenced this issue Aug 23, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants