datatype-expansion
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "datatype-expansion", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Utility tool to expand a given RAML type and create a canonical form", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -102,3 +102,3 @@ 'use strict' | ||
// recursively with the parsed type expression and the provided `bindings` | ||
if (/^[^\s|]*(?:\s*\|\s*[^\s|]*)+$/.test(form)) { // union | ||
if (/^[^|\s]+(?:\|[^|\s]+)+$/.test(form.replace(/\s+/g, ''))) { // union | ||
const alternatives = form.split('|').map(s => s.trim()) | ||
@@ -105,0 +105,0 @@ return expandUnion({anyOf: alternatives, type: 'union'}, bindings, visited, options) |
Sorry, the diff of this file is too big to display
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
948267