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

Click of "example" doesnt populate the input field #75

Open
jwoodlee opened this issue Mar 4, 2017 · 1 comment
Open

Click of "example" doesnt populate the input field #75

jwoodlee opened this issue Mar 4, 2017 · 1 comment
Labels

Comments

@jwoodlee
Copy link

jwoodlee commented Mar 4, 2017

API is Rails Api based
I have the css and javascript in the asset pipeline and they are being generated and are loading to the browser. However when viewing a api document page and clicking on the yellow box to populate the input field with the example it does nothing. Normally for swagger ui this does work. See petstore working example ... http://petstore.swagger.io/#!/pet/addPet and click the yellow example payload.

It doesnt seem to work on my grape-swagger-rails version :(

When i hit the swagger root page (not the page in question) I get a js error in console
screen shot 2017-03-04 at 8 59 11 am

When i visit the actual endpoint page (api/users) screen renders fine. Switch from model/example works. But clicking the yellow example box - does nothing :(

@aschuster3
Copy link

I don't want to make too many assumptions because I can't see your code, but from the looks of it, the JavaScript is having trouble processing %2Fusers_Users_create_content. %2F is an html-encoded forward-slash, so if you have a / somewhere in you code base near your "Users" logic, that might give you some place to start.

@dblock dblock added the bug? label Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants