cloudwan / gohan

Gohan is an API Gateway Server written by Go that makes it easy for developers to create and maintain REST-style API
http://www.slideshare.net/natiueno/gohan-61170476
Other
109 stars 44 forks source link

Fix assertion in OpenAPI v3 test #780

Closed tomasz-michalski closed 4 years ago

tomasz-michalski commented 4 years ago

WithTransform() was used incorrectly - it should be inside To(), not Expect(). Due to this, assertion was constructed in such a way that it always passed, regardless of what the code under test returned.

WithTransform() was not consistent with the rest of the code which called transformJSON() directly, therefore it was removed.