Skip to content

Releases: ErikWittern/openapi-snippet

Revise parameter handling for snippets

13 Jul 18:46
Compare
Choose a tag to compare

This version brings major improvements to handling parameters in snippets, thanks to amazing work by @michaelgwelch! It includes:

  • Properly handle examples (#81)
  • Support for "exploding" parameters that with arrays / objects (#83)
  • Resolve $ref nodes for header parameters (#84)
  • Properly lookup parameter values both at path and then at path.method for all types of parameters (#85)
  • Added support for cookie parameters, label and matrix style path parameters, space and pipe delimited query parameters, resolving references in example schemas

All above cases are supported by a solid suite of tests. Thanks again, @michaelgwelch!!!

v0.13.0

10 Nov 16:46
Compare
Choose a tag to compare
  • Increase httpsnippet version to 2.0.0 (#75, thanks to @restyler)

v0.12.1

31 Aug 09:45
Compare
Choose a tag to compare
  • Fix bug when generating multipart/form-data requests (#73)

Thanks once more to @bpross for this contribution!

v0.12.0

27 Aug 17:33
Compare
Choose a tag to compare
  • Adds support for query parameters defined on a path, not only on the method level (#71)
  • Adds support generating snippets with multiple content-types (#72)

Huge thanks to @bpross for these two fantastic contributions!

Add x-www-form-urlencoded media type examples support

13 Aug 11:48
Compare
Choose a tag to compare

Add x-www-form-urlencoded media type examples support (#67). Thanks to @d-silva for this new feature!

v0.10.0

04 Jun 14:43
Compare
Choose a tag to compare

Adds support for using example field in parameter object #61 - Thanks to @cmullenx!

v0.9.3

17 May 11:44
Compare
Choose a tag to compare
  • Support server overrides in paths / operations, thanks to @amitkgupta
  • Bump dependencies to fix vulnerabilities
  • Add Prettier for consistent code

v0.9.2

23 Oct 07:39
Compare
Choose a tag to compare
  • Fix declaration of library as let to avoid TypeError - thanks @ZinoKader

v0.9.1

13 Aug 11:25
Compare
Choose a tag to compare
  • Resolve $ref in body (addresses #49, thanks @rohit-gohri)
  • Enable using placeholders in parameters defined per method (thanks @rohit-gohri)
  • Address vulnerabilities

v0.9.0

22 Jun 19:51
Compare
Choose a tag to compare
  • Fix error when using securityScheme of type oauth2 without scheme property (thanks @niteshhegde)
  • Add example values to URL parameters when present (thanks @RolphH)