Skip to content

Conversation

@Bancalets
Copy link

Spring swagger2 exported path values create entries like this one:

"/activity/{user}{?from,to}"

The result is a non importable json entry for Postman, as the Query Params (optional or not) are set twice, the second time with the right format, following the previous example:

"url": "{{scheme}}://{{host}}:{{port}}/service/activity/:user:?from,to?from={{from}}&to={{to}}",

The fix prevents this malformed entry and transforms it to:
"url": "{{scheme}}://{{host}}:{{port}}/service/activity/:user?from={{from}}&to={{to}}",

What is a valid entry and works fine with Postman JSON Import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant