Skip to content

Commit

Permalink
Merge pull request #74 from arush-sal/add-form-data-support
Browse files Browse the repository at this point in the history
add support for formdata src
  • Loading branch information
arush-sal committed Dec 11, 2022
2 parents 85abc3e + f97900b commit da3ca05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions postman/collection_v210.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type collectionV210Event struct {

type collectionV210KeyValuePair struct {
Key string `json:"key"`
Source string `json:"src"`
Value interface{} `json:"value"`
Description string `json:"description"`
}
3 changes: 3 additions & 0 deletions postman/collection_v210_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ func (p *CollectionV210Parser) parseRequestPayloadParams(item collectionV210Item
}

for _, pair := range keyValuePairCollection {
if pair.Value == nil {
pair.Value = pair.Source
}
payloadParams = append(payloadParams, KeyValuePair{
Name: pair.Key,
Key: pair.Key,
Expand Down

0 comments on commit da3ca05

Please sign in to comment.