pyopenapi / pyswagger

An OpenAPI (fka Swagger) client & converter in python, which is type-safe, dynamic, spec-compliant.
MIT License
384 stars 88 forks source link

Resolve the parameter when preparing request body #116

Closed ghost closed 7 years ago

ghost commented 7 years ago

Request has empty HTTP body If a body parameter is defined with a $ref. This patch takes the resolved parameter values to fix this issue. I am not sure on how to write a test for this by providing schema in code.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.002%) to 94.234% when pulling d8ba16de8cd1b156e7d6934ec568b1419564f73e on surajbarkale-dolby:patch-1 into 163f6e8c8cce2912cf6915ca3dc15a96bc7b5def on mission-liao:master.

mission-liao commented 7 years ago

that's an obvious bug, I'll add test case for it later this week.

========= I'm late on this item, but corresponding test case (and another identical issue) is added, refer to https://github.com/mission-liao/pyswagger/issues/119