You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With swagger-core_2.10 version 1.3.10, parsing a JSON definition of a Swagger API and using Parameter.paramType() seems to be returning the type property of the parameter instead of paramType
Example:
Having this list of parameters in my petstore.json API definition:
"parameters": [
{
"name": "orderId",
"description": "ID of pet that needs to be fetched",
"required": true,
"type": "string",
"paramType": "path"
}
]
And doing:
this.apiListing = JsonSerializer.asApiListing(swaggerString);
// more logic, creating an Iterator<Parameter> for this operationwhile (parameterIterator.hasNext()) {
Parameterparameter = parameterIterator.next();
parameter.paramType(); // returns "string" instead of "path"
}
Investigating further, it seems that Parameter.toString() does not include the paramType property either:
With swagger-core_2.10 version
1.3.10
, parsing a JSON definition of a Swagger API and usingParameter.paramType()
seems to be returning the type property of the parameter instead of paramTypeExample:
Having this list of parameters in my
petstore.json
API definition:And doing:
Investigating further, it seems that
Parameter.toString()
does not include theparamType
property either:The text was updated successfully, but these errors were encountered: