Closed dfrommi closed 4 years ago
Swagger allows to reuse common parameters by referencing items of the top-level parameters section. The parameter section in paths then looks like
parameters
paths
parameters: - $ref: "#/parameters/max" - $ref: "#/parameters/offset"
An error is thrown at the moment in that case, because a name property is expected and references are not resolved.
name
This PR resolves references from the top-level parameters object if $ref is found.
$ref
Thanks!
Swagger allows to reuse common parameters by referencing items of the top-level
parameters
section. The parameter section inpaths
then looks likeAn error is thrown at the moment in that case, because a
name
property is expected and references are not resolved.This PR resolves references from the top-level parameters object if
$ref
is found.