Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

open-api-mocker

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open-api-mocker - npm Package Versions

23

2.0.0

Diff

Changelog

Source

[2.0.0] - 2023-05-30

Added

  • Added support for node 16 and 18

Changed

  • Moved to new @faker-js/faker@8 instead of old and nuked faker BREAKING CHANGE (See docs for migration) (#63)
  • The x-faker property now has priority over example when generating responses BREAKING CHANGE (#59)

Removed

  • Dropped support for node 10 and 12
jormaechea
published 1.11.1 •

Changelog

Source

[1.11.1] - 2022-02-20

Fixed

  • Responses that are just a number are now properly generated (#56)
jormaechea
published 1.11.0 •

Changelog

Source

[1.11.0] - 2021-12-23

Added

  • Faker locale validation to avoid setting an invalid locale

Fixed

  • Locales without country modifier now work properly (solves docker error with faker) (#55)
jormaechea
published 1.10.0 •

Changelog

Source

[1.10.0] - 2021-12-22

Added

  • null examples are now allowed and used for response generation (#49)
jormaechea
published 1.9.0 •

Changelog

Source

[1.9.0] - 2021-12-20

Added

  • Response handling for different mime types (#48)

Changed

  • Now x-faker extension takes precedence in response generation (#53)

Fixed

  • Faker now locale selection now works as expected (#50, #54)
jormaechea
published 1.8.0 •

Changelog

Source

[1.8.0] - 2021-10-10

Changed

  • Now responses with enums pick a random element from the enum array
  • Now JSON request bodies can handle up to 10mb

Fixed

  • Dependencies updated to fix vulnerabilities
jormaechea
published 1.7.2 •

Changelog

Source

[1.7.2] - 2021-06-27

Fixed

  • In some cases oneOf, anyOf and allOf schemas reported an error that wasn't real. This doesn't happen any more
  • Response handling had an error since last release, which has now been fixed.
jormaechea
published 1.7.1 •

Changelog

Source

[1.7.1] - 2021-06-22

Fixed

  • Response header x-powered-by has now the correct value
  • Schema Object pattern property can be passed as a string (#35)
  • Refactor to improve code quality and maintainability (#37)
  • Schemas with oneOf, anyOf and allOf now work properly and don't get wrong default values injected (#41)
  • Dependencies updated to fix vulnerabilities
jormaechea
published 1.7.0 •

Changelog

Source

[1.7.0] - 2021-04-20

Added

  • quiet (alias q) option to avoid printing every request and response (#24)
  • CLI: force-quit implemented by pressing ctrl+c twice
  • Added support for custom Server implementation for programmatic usage (#22)
  • Added support for custom Schema loader implementation for programmatic usage (#27)
  • Added advanced usage docs

Changed

  • Schema loading and watch feature moved out of CLI layer

Fixed

  • Updated dependencies to fix vulnerabilities
  • Huge refactor to improve code quality and separation of concerns (#26, #27)
jormaechea
published 1.6.0 •

Changelog

Source

[1.6.0] - 2021-03-23

Added

  • x-faker extension is now supported for response generation
  • x-count extension is now supported for responses with array types
  • Added support for more formats defined in the OpenAPI specs

Changed

  • Unknown formats don't throw errors any more

Fixed

  • Prefer header with statusCode now works properly again
  • Git hooks are now run again with husky@4
  • Tests now run properly when local timezone is not UTC
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc