Hi,
I am generating stubs using swagger-js-codegen .Everything is fine but i
find error in the stubs that is generating .For headers it sets the value
as:
headers['Accept'] = ['application/json, application/vnd.il.contents.v1+json'];
{invalid error when we send a POST request}
headers['Content-Type'] =
['application/json,application/vnd.il.contents.v1+json'];
which is wrong ,Actually it should generates the header like the below with
proper split
headers['Accept'] = ['application/json', 'application/vnd.il.contents.v1+json'];
headers['Content-Type'] =
['application/json','application/vnd.il.contents.v1+json'];
my spec file has the details like this
"produces": [
"application/json",
"application/vnd.il.accounts.v1+json3"
],
"consumes": [
"application/json"
],
Seems like swagger-js-codegen doesnt read file which seems to be a bug.Kindly
help
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.