es-mapping-to-schema
Advanced tools
Comparing version 3.2.2 to 3.2.3
@@ -42,4 +42,3 @@ const _ = require('lodash'); | ||
if (mapping.properties) { | ||
const nextSchema = determineType(mapping.properties, {}, schemaType, options); | ||
schema.items.properties = recurseMappingProperties(mapping.properties, nextSchema, schemaType, options, {}); | ||
schema.items.properties = recurseMappingProperties(mapping.properties, {}, schemaType, options, {}); | ||
@@ -52,4 +51,3 @@ if (strict) { | ||
if (mapping.properties) { | ||
const nextSchema = determineType(mapping.properties, {}, schemaType, options); | ||
schema.properties = recurseMappingProperties(mapping.properties, nextSchema, schemaType, options, {}); | ||
schema.properties = recurseMappingProperties(mapping.properties, {}, schemaType, options, {}); | ||
@@ -169,3 +167,3 @@ if (strict) { | ||
default: | ||
console.log(`mapping type: ${type} is unsupported and will be ignored`); | ||
console.warn(`mapping type: ${_.isObject(type) ? JSON.stringify(type, null, 2) : type} is unsupported and will be ignored`); | ||
return null; | ||
@@ -172,0 +170,0 @@ } |
{ | ||
"name": "es-mapping-to-schema", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"description": "Convert Elasticsearch mappings to Schema Inspector schemas", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43819
1425