Closed DavidBiesack closed 9 years ago
Hi @DavidBiesack, update your parameter block to the following:
"parameters" : {
"Accept" : {
"description" : "The media type of the requested response body",
"location" : "header",
"required" : true,
"title" : "Accept",
"enum" : [ "application/json", "application/xml" ],
"type" : "string"
}
}
With yours, it was trying to parse "type" and ran into an unexpected array.
Thanks, that got me going.. However, rather than close this, I suggest leaving it open so error handling (on admittedly bad input) can be improved. Certainly this error (hidden in the console and not exposed in the UI) is cryptic.
Is there a JSON schema for I/O Docs? That would let me validate my JSON outside of the tool. Thanks.
I'm trying out I/O Docs. I cloned this repo today and installed/ran it successfully (I can drive the rottentomatoes API for example).
I added a test API to the top of my apiconfig.json before klout.json and added the following to public/data/microurl.json
This stub API also works, but when I try to add an Accept header parameter to the getRoot method
I get an exception when I click Try it! . I enabled debug in the config.json and see the following: