Releases: pb33f/wiretap
v0.2.2
Changelog
- 4f7bc5d Add .nvmrc for folks doing local dev that have multiple versions of node on their host
- 1ca6f78 Even leaner - running image ~36 MB footprint w/ alpine linux and wiretap binary
- a050935 fix up path
- 0a59369 let dockerfile support multi platform builds, change publish action to pulish muti-platform builds
v0.2.1
v0.2.0
v0.1.20
v0.1.19
v0.1.18
v0.1.17
v0.1.16
v0.1.15
Currently when the response mock engine generates a response using the MockGenerator
, the generated responses contain only examples for individual properties that are marked as required, see tests for more details.
The reason why generated responses contain only examples for required properties is a side-effect of using mock generator for validation. While it makes sense for validating required fields for requests, it shouldn't affect the response generation.
Changes:
- By default, disables the required check on the response mock engine to ensure that all examples for individual properties are used in generated mock responses.
- Introduces a new configuration option,
enable-all-mock-response-fields
, to allow only the use of required field examples in the generated mock responses when set tofalse
.
This fix uses pb33f/libopenapi#295
Wiretap just blindly rewrites paths that match any configuration.
Some (poorly written) APIs don't necessarily want to rewrite everything under a specific resource location.
The current way to do this is to add a dummy path rewrite that takes precedence. This is kind of hacky and also doesn't jump over target rewriting.