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
In an openAPI 2.0 declaration, if you have two ref parameters not separated by "/" , the client generator send the error :
-attribute paths.'/v1/users/{firstparam}-{secondparam}'. Declared path parameter firstparam}-{secondparam needs to be defined as a path parameter in path or operation level
the OpenAPI declaration file has no error in swagger editor
The text was updated successfully, but these errors were encountered:
karismann
changed the title
[BUG] OpenApi 2 client generator refparameters not separated by slash
[BUG] OpenApi 2 client generator - error parsing when refparameters not separated by slash
Mar 30, 2019
I have also hit this with an OpenAPI v3 spec (using OpenAPI-tools-2.0.8-2), and it seems to be a regression caused by #928 - the check there that path parameters are defined assumes that the path parametrs form the whole of a URl segment.
For completeness: I was slightly unsure if this behaviour was meant to be valid according to the OpenAPI specification as the current spec is unclear - but OAI/OpenAPI-Specification#1950 suggests that this is valid, and so the parser ought to accept it.
Description
In an openAPI 2.0 declaration, if you have two ref parameters not separated by "/" , the client generator send the error :
swagger parser version
2.0.11-OpenAPITools.org-1
OpenAPI declaration file content or url
the OpenAPI declaration file has no error in swagger editor
The text was updated successfully, but these errors were encountered: