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

@stoplight/prism-core

Package Overview
Dependencies
Maintainers
28
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/prism-core - npm Package Versions

1
20

3.1.1

Diff

Changelog

Source

3.1.1 (2019-09-23)

Fixed

  • Prism is now giving precedence to application/json instead of using it as a "fallback" serializer, fixing some conditions where it wouldn't get triggered correctly. #604
  • Prism is now taking in consideration the required properties for combined schemas (oneOf, allOf). This is coming through an update to the Json Schema Faker Library #623
  • Prism will never have enough information to return a 403 status code; all these occurences have been now replaced with a 401 status code which is more appropriate #625
  • Prism is now negotiating the error response dynamically based on the validation result (security or schema validation) instead of always returning a static order of responses #628
  • Prism is now selecting proper serializer when Accept header contains content type which is missing in spec. This is a result of simplifying serializer selection approach. #620
  • HEAD requests no longer fail with 406 Not Acceptable #603
marbemac
published 3.1.0 •

Changelog

Source

3.1.0 (2019-09-03)

Added

  • Prism is now able to validate the security specification of the loaded document #484

Fixed

  • Prism is not crashing anymore when referencing the same model multiple times in the specification document #552
  • Prism will now correctly use the example keyword for a Schema Object in OpenAPI 3.0 documents #560
  • Prism won't return 406 when users request a text/plain response whose content is a primitive (string, number) #560
  • Prism's router is now able to correctly handle a path ending with a parameter, such as /test.{format}, while it would previously not match with anything. #561
  • Prism is correctly handling the allowEmptyValue property in OAS2 documents #569
  • Prism is correctly handling the csv collection format argument property in OAS2 documents #577
  • Prism is correctly returning the response when the request has */* as Accept header #578
  • Prism is correctly returning a single root node with the payload for XML data #578
  • Prism is correctly returning payload-less responses #606
marbemac
published 3.0.4 •

Changelog

Source

3.0.4 (2019-08-20)

Added

  • Prism is now returning CORS headers by default and responding to all the preflights requests. You can disable this behaviour by running Prism with the --cors flag set to false #525

Fixed

  • Prism now respects the nullable value for OpenAPI 3.x documents when generating examples #506
  • Prism now loads correctly OpenAPI 3.x documents with encodings with non specified style property #507
  • Prism got rid of some big internal dependencies that now aren't required anymore, making it faster and lighter. #490
  • Prism now correctly validates OAS2 application/x-www-urlencoded (form data) params (#483)
marbemac
published 3.0.3 •

Changelog

Source

3.0.3 (2019-07-25)

Fixed

  • Prism is now returning a 406 error instead of an empty response in case it is not able to find a response whose content type satisfies the provided Accept Header
  • Prism now respects the q value in the Accept header to specify the content type preference
  • Prism is now returning text/plain when the document does not specify any Content Type for the examples
  • Prism is now returning the example according to the Accept header for OAS2 documents
  • Prism is now returning 404 instead of 500 in case the requested named example does not exist in the document

Changed

  • Prism HTTP Client is now adding 'user-agent' header with Prism/<<PRISM_VERSION>> as the value when making HTTP requests
  • Prism is now using yargs for its command line interface, replacing oclif.
marbemac
published 3.0.2 •

marbemac
published 3.0.1 •

Changelog

Source

3.0.1 (2019-07-16)

Fixed

  • Fixed an error in the JSON Path bundling for NPM Package download
marbemac
published 3.0.0 •

Changelog

Source

3.0.0 (2019-07-16)

This is nothing more than the beta 6 rebranded.

marbemac
published 3.0.0-beta.6 •

Changelog

Source

3.0.0-beta.6 (2019-07-12)

Fixed

  • Prism now loads correctly files from the internet with urls using query parameters #452
  • Prism now correctly respects the required property in OpenAPI 2 body parameters #450
  • Prism now validates any payload, as long it has a schema and it's parsable #446
  • Prism now will tell you explicitly when a response has been constructed from a default response definition #445
marbemac
published 3.0.0-beta.5 •

Changelog

Source

3.0.0-beta.5 (2019-07-09)

Features

  • Internal refactoring: Prism validation process is now completely sync #400
marbemac
published 3.0.0-beta.4 •

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