repocho / raml-mocker

Node module to create random responses to requests based on RAML rest definition.
MIT License
93 stars 33 forks source link

Relax response's media type #11

Closed m0x72 closed 8 years ago

m0x72 commented 9 years ago

Currently mocks are only generated for responses of the media type application/json (https://github.com/RePoChO/raml-mocker/blob/master/src/index.js#L156).

Any (custom) JSON media type should be allowed though. As a solution, one may either:

Any inputs? Would be happy to draft a PR :)

fabiotisci commented 8 years ago

@repocho Could you please take a look and merge if you think is right? We are using the server and it's creating problems with custom media types. Cheers

repocho commented 8 years ago

Fixed by #19