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

es-mapping-to-schema

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-mapping-to-schema - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

16

index.js

@@ -48,13 +48,11 @@ const _ = require('lodash');

if (mapping.properties || mapping.type === 'object' || mapping.type === 'nested') {
if (options.isArray) {
schema.items = RecurseMappingToSchema(mapping.properties, {}, schemaType, options, {});
} else {
if (mapping.properties) {
schema.properties = RecurseMappingToSchema(mapping.properties, {}, schemaType, options, {});
}
const fieldName = options.isArray ? 'items' : 'properties';
if (strict) {
schema.strict = true;
}
if (mapping.properties) {
schema[fieldName] = RecurseMappingToSchema(mapping.properties, {}, schemaType, options, {});
}
if (strict) {
schema.strict = true;
}
}

@@ -61,0 +59,0 @@

{
"name": "es-mapping-to-schema",
"version": "3.0.4",
"version": "3.0.5",
"description": "Convert Elasticsearch mappings to Schema Inspector schemas",

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

Sorry, the diff of this file is not supported yet

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