prism

Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.

APACHE-2.0 License

Downloads
1.3M
Stars
4.3K
Committers
92

Bot releases are hidden (Show)

prism - v2.0.1

Published by pytlesk4 over 6 years ago

Overview

  • De-reference transitive references in oas 2.0 specification
prism - v2.0.0

Published by pytlesk4 over 6 years ago

Overview

  • Bump Prism to 2.0.0
  • Perfomance boost for Prism Instances
  • Automatic status code assertions for Scenario HTTP steps
  • Removed Bugsnag
  • Fix Scenario Refs for prism instances that reffed other Scenarios
prism - v2.0.0-beta.9-6

Published by pytlesk4 over 6 years ago

Overview

  • Bug fixes

Issues

  • fixes #137
  • fixes #136
prism - v2.0.0-beta.9-5

Published by pytlesk4 over 6 years ago

Overview

  • Parse collection settings correctly
  • Support response schema not defined: response schema spec
  • Add redirects to collection settings, and support it
  • Make sure to always set $$.request, not just for proxy mode
  • Set multiple header values correctly on scenario step results
  • Unescape step http url correctly
  • Support query property for http steps.
  • build the runMap correctly for /v1/run endpoint.

Issues

  • fixes #135
  • fixes #104
prism - v2.0.0-beta.9-4

Published by pytlesk4 over 6 years ago

Overview

  • fixed windows crash on startup
  • fixed windows Linux subsystem
  • improve OAS expansion for responses, parameters and path items

Issues

  • fixes #132
prism - v2.0.0-beta.9-3

Published by pytlesk4 over 6 years ago

Overview

  • add prism mock command to start a mock server

    prism mock --spec oas.json --port 4010 --debug
    
     --spec is required and is the location on disk or the internets
     --port is optional, defaults to 4010
     --debug is optional, defaults to false
    
  • add prism validate command to start a validation server

     prism validate --spec oas.json --upstream http://example.com  --port 4010 --debug
    
      --spec is required, and is the location on disk or the internets
      --upstream is optional, defaults to oas specification
      --port is optional, defaults to 4010
      --debug is optional, defaults to false
    
  • improve yaml support in for prism instances, scenarios and oas specification

  • cookie API in javascript runtime

  • scenario refs don't have to point to a collection file, can point to a scenario file.

  • look up the correct header for authentication

  • bug fixes and other usability improvements

Issues

  • closes #106
prism - v2.0.0-beta.9-2

Published by pytlesk4 almost 7 years ago

Overview

YAML Scenarios and OAS support.

Issues

fixes #60

prism - v2.0.0-beta.9-1

Published by pytlesk4 almost 7 years ago

fixes #112
fixes #114

prism - v2.0.0-beta.9

Published by pytlesk4 almost 7 years ago

fix modifying the response in an after prism instance, when requests are forwarded upstream.

prism - v2.0.0-beta.8

Published by pytlesk4 almost 7 years ago

  • download private scenario, oas refs
  • fix int64 validation
  • validate responses that don't have a content type
  • other bug fixes/improvements
prism - v2.0.0-beta.7

Published by pytlesk4 almost 7 years ago

  • up to a 2x performance boost
  • scenario runs timeout after two mins
  • configureable request timeout
  • $$.stop
  • bug fixes and improvements
prism - v2.0.0-beta.6

Published by pytlesk4 almost 7 years ago

  • prism login is now an interactive command
  • don't show password when using prism login
  • When looping over step results, don't look up a result that doesn't exist.
  • Properly build api host from swagger spec, especially when the api host is an ip address with a port.
prism - v2.0.0-beta.5

Published by pytlesk4 almost 7 years ago

  • fix issue with swagger refs
  • add support for --token, going to be exposed in the stoplight desktop/web app.
  • fix spelling for error logs
  • other bug fixes/improvements
prism - v2.0.0-beta.4

Published by pytlesk4 almost 7 years ago

  • Update javascript runtime
  • Fix windows
  • Report errors at the collection result level
  • fix issue with accessing oas specs
  • other bug fixes and improvements.
prism - v2.0.0-beta.3

Published by pytlesk4 almost 7 years ago

  • Breaking: Add login/logout command. If your scenarios are private, you must login first to run them.
  • Feature: Add serve command. Run prism instance servers locally.
  • Feature: Better error reporting when scenarios/specs fail to download.
  • Fix: AWS Authentication when request has a body.
prism - v2.0.0-beta.2

Published by pytlesk4 almost 7 years ago

Fix panic for custom json schema formats

prism - v2.0.0-beta.1

Published by pytlesk4 about 7 years ago

prism - v2.0.0-beta.0

Published by pytlesk4 about 7 years ago

  • Add array length assertion operation
  • Error/Warning reporting
    • malformed body error
    • malformed request url
    • missing scenario ref
    • can’t capture target because it doesn’t exist
    • script errors
    • missing variables
  • Validate format binary for JSON Schema/Contract Testing
  • Empty base path in swagger spec ( ‘/‘ ) doesn’t cause contract testing and mocking to fail.
  • Script step types console.log/warn/debub/error fixed when running from the terminal.
  • Fix $$.response.headers.set(‘name’, ‘value’);
  • Better error handling for Prism Instances
  • Equal assertion in the ui is fixed for null.
  • Add $.stop(), to js runtime, to stop current scenario.
  • Add stop(), to js runtime, to stop current step.
  • Add SL.sleep(milliseconds) to js runtime.
prism - v2.0.0-alpha.7

Published by pytlesk4 over 7 years ago

  • Don’t panic when an array of refs can’t be expanded because the ref doesn’t exist.
prism - v2.0.0-alpha.6

Published by pytlesk4 over 7 years ago

  • when running a scenario collection do not run utilities.
  • validate empty body properly
  • validate.contract should run if a response object is defined in swaggers spec, but json schema isn’t defined. link
Package Rankings
Top 1.2% on Npmjs.org
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
Prism - API Mock Servers and Contract Testing CircleCI NPM Downloads Stoplight Forest
Related Projects