@mintlify/validation
Advanced tools
Comparing version 0.1.94 to 0.1.95
@@ -240,4 +240,5 @@ import lcm from 'lcm'; | ||
Object.entries(schema2.properties).forEach(([property, schema]) => { | ||
if (property in combinedProperties) { | ||
combinedProperties[property] = combineReducedSchemas([...path, 'properties', property], combinedProperties[property], schema); | ||
const schema1Property = combinedProperties[property]; | ||
if (schema1Property) { | ||
combinedProperties[property] = combineReducedSchemas([...path, 'properties', property], schema1Property, schema); | ||
} | ||
@@ -390,2 +391,5 @@ else { | ||
}); | ||
if (!schemaArray[0]) { | ||
throw new ConversionError(path, 'missing schema definition in position 0'); | ||
} | ||
// must unpack first element to satisfy type | ||
@@ -392,0 +396,0 @@ return [schemaArray[0], ...schemaArray.slice(1)]; |
{ | ||
"name": "@mintlify/validation", | ||
"version": "0.1.94", | ||
"version": "0.1.95", | ||
"description": "Validates mint.json files", | ||
@@ -52,5 +52,5 @@ "author": "Mintlify, Inc.", | ||
"@mintlify/eslint-config-typescript": "1.0.9", | ||
"@mintlify/models": "0.0.51", | ||
"@mintlify/models": "0.0.52", | ||
"@mintlify/prettier-config": "1.0.1", | ||
"@mintlify/ts-config": "2.0.1", | ||
"@mintlify/ts-config": "2.0.2", | ||
"@trivago/prettier-plugin-sort-imports": "3.x", | ||
@@ -74,3 +74,3 @@ "@tsconfig/recommended": "1.x", | ||
}, | ||
"gitHead": "4e76dca81bccf1d79c8439731205b89157c9c796" | ||
"gitHead": "0bda04b12eafb95772aa8e4cbf8f5cf2d246fb8e" | ||
} |
Sorry, the diff of this file is not supported yet
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
196033
3581