Closed RafaeLeal closed 8 months ago
Hi! I think I've discovered a bug related to $ref usage on parameters for swagger. I've tried to reproduce it using OpenAPI v3, but it seems it's working properly there.
$ref
Consider the schema:
swagger: "2.0" info: title: "Users API" version: "1.0" definitions: userIdParam: name: id in: query description: user's id required: true type: string paths: /users: get: operationId: getUsers parameters: - $ref: "#/definitions/userIdParam" responses: '200': description: "OK"
It's not producing the query schema correctly:
(let [client (martian-httpkit/bootstrap-openapi "swagger-example.yaml")] (martian/explore client :get-users)) => {:summary nil, :parameters {}, :returns {200 Any}}
Closing as fixed in #196
Hi! I think I've discovered a bug related to
$ref
usage on parameters for swagger. I've tried to reproduce it using OpenAPI v3, but it seems it's working properly there.Consider the schema:
It's not producing the query schema correctly: