v0.6.0
Highlight
Support argument presets to inject values into request arguments. Preset arguments can be configured globally in the root settings
field or on individual servers.
{
"settings": {
"servers": [
{
"url": {
"env": "PET_STORE_URL"
},
"argumentPresets": [
{
"path": "body.name",
"value": {
"type": "env",
"name": "PET_NAME"
},
"targets": ["addPet"]
}
]
}
],
"argumentPresets": [
{
"path": "status",
"value": {
"type": "forwardHeader",
"name": "X-Pet-Status"
},
"targets": ["findPetsByStatus"]
},
{
"path": "body.id",
"value": {
"type": "literal",
"value": 1
},
"targets": ["addPet"]
}
]
}
}
Support 3 value types:
- Literal value
- Environment variable
- Header forwarding
What's Changed
- enhancement: evaluate and convert response types by @hgiasac in #37
- misc: restructure content type encoder modules by @hgiasac in #38
- feat: argument presets by @hgiasac in #39
- fix: duplicated input files and improve validation by @hgiasac in #40
Full Changelog: v0.5.0...v0.6.0