New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

openapi-format

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-format - npm Package Compare versions

Comparing version 1.21.1 to 1.21.2

4

CHANGELOG.md
## unreleased
## [1.21.2] - 2024-08-02
- Sort - Bugfix for requestBody.example distortion (#120)
## [1.21.1] - 2024-07-21

@@ -4,0 +8,0 @@

4

openapi-format.js

@@ -76,5 +76,5 @@ #!/usr/bin/env node

if (Array.isArray(node)) {
if (this.parent && this.parent.key === 'example' && this.path[0] === 'components') {
if (this.parent && this.parent.key === 'example' && (this.path[0] === 'components' || this.path[3] === 'requestBody')) {
// debugStep = 'Generic sorting - skip nested components>example array'
// Skip nested components>example values
// Skip nested components>example or requestBody>example values
} else {

@@ -81,0 +81,0 @@ // debugStep = 'Generic sorting - array'

{
"name": "openapi-format",
"version": "1.21.1",
"version": "1.21.2",
"description": "Format an OpenAPI document by ordering, formatting and filtering fields.",

@@ -37,3 +37,3 @@ "keywords": [

"commander": "^7.2.0",
"neotraverse": "^0.6.14"
"neotraverse": "^0.6.15"
},

@@ -40,0 +40,0 @@ "devDependencies": {

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