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

joi-to-json

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joi-to-json - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

17

lib/parsers/json.js

@@ -31,2 +31,3 @@ /* eslint no-use-before-define: 'off' */

this._addNullTypeIfNullable(schema, joiSpec)
this._setMetaProperties(schema, joiSpec)

@@ -230,7 +231,2 @@ return schema

}
_.forEach(fieldDefn.meta, (m) => {
if (m.contentMediaType) {
fieldSchema.contentMediaType = m.contentMediaType
}
})

@@ -403,4 +399,15 @@ const ruleArgFieldName = this.ruleArgFieldName

}
_setMetaProperties(schema, joiSpec) {
_.forEach(joiSpec.metas, (m) => {
if (m.contentMediaType) {
schema.contentMediaType = m.contentMediaType
}
if (m.format) {
schema.format = m.format
}
})
}
}
module.exports = JoiJsonSchemaParser
{
"name": "joi-to-json",
"version": "2.1.1",
"version": "2.2.0",
"description": "joi to JSON / OpenAPI Schema Converter",

@@ -5,0 +5,0 @@ "main": "index.js",

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