swagger-server
swagger-server copied to clipboard
Looks like HTML root file ref should contain JSON
Hello!
Please check that. I was trying to write it from scratch but it was giving me 410 Gone on requesting index. So I took sample and was cutting it down until I got what is breaking things. It was JSON in HTML
In repo below requesting GET / will cause error. However if you will add any key:value inside JSON, it will work:
this does not work:
<textarea id="pet" name="pet" cols="60" rows="15" class="form-control"
onkeydown="updateUI()" onkeyup="updateUI()" onchange="updateUI()">{
} </textarea>
while this does:
<textarea id="pet" name="pet" cols="60" rows="15" class="form-control"
onkeydown="updateUI()" onkeyup="updateUI()" onchange="updateUI()">{
"a": "b"
} </textarea>
Please fixme if I am doing something wrong...
https://github.com/k41n/sr-mock