Skip to content

Releases: pb33f/wiretap

v0.1.15

14 Jun 14:04
Compare
Choose a tag to compare

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 to false.

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.

Changelog

  • 3548ed6 Add tests for property examples usage in mock responses
  • 1357ba0 Added global and local ignore path rewriting support to path configurations.
  • 97a717c Disable required check on response mock engine
  • 0ac01b6 Make mock response field example usage configurable

@jacobm-splunk @martinsirbe

v0.1.14

02 Jun 14:57
Compare
Choose a tag to compare

Changelog

  • dfacb38 Small update to use header variable
  • fb694d0 Wiretap doesn't handle multi-value header keys correctly when writing the response

v0.1.13

13 May 13:15
Compare
Choose a tag to compare

Changelog

  • e283619 Add test case - expected HTTP 204 instead of 200 response
  • effef1f Check and return early when lowest success code is 204

v0.1.12

12 May 17:24
Compare
Choose a tag to compare

Changelog

v0.1.11

02 May 21:56
Compare
Choose a tag to compare

Changelog

  • 3483053 Added mock mode status code override #89

v0.1.10

02 May 21:21
Compare
Choose a tag to compare

Changelog

v0.1.9

30 Apr 14:46
Compare
Choose a tag to compare

Changelog

v0.1.8

28 Apr 13:49
Compare
Choose a tag to compare

Changelog

  • b7afdfb Added a --strict-redirect-location option; if enabled wiretap will rewrite all header hosts to wiretap's api gateway host
  • a0fc15e Added badges to readme, it’s time.
  • bd63eae Check if mock is not nil before writing response
  • 574d643 Fixed small bug where an empty host should be ignored
  • 2455314 Fixed small bug with rewriting not including the correct locations
  • 925941d Updated libopenapi-validator

v0.1.7

12 Apr 19:56
Compare
Choose a tag to compare

Changelog

  • c05b7e8 Added request validation filtering
  • 3a5f91a Updated libopenapi-validator version to latest
  • ac7946e fixed TODOs that were left from previous commit

v0.1.6

05 Apr 20:28
Compare
Choose a tag to compare

Changelog

  • 5e9102a Added support for Websockets
  • 3c27d94 OPENAPI: addressed MR Comments