metaschema
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -48,4 +48,5 @@ 'use strict'; | ||
if (ms.domains.has(name)) { | ||
errors.push(new SchemaValidationError('duplicate', name, null, { | ||
entity: 'domain' | ||
errors.push(new SchemaValidationError('duplicate', domains.name, { | ||
type: 'domain', | ||
value: name | ||
})); | ||
@@ -52,0 +53,0 @@ } else { |
@@ -1,3 +0,7 @@ | ||
'use strict'; // Field decorators | ||
'use strict'; | ||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -17,2 +21,5 @@ | ||
var common = require('@metarhia/common'); // Field decorators | ||
var ValuesDecorator = function ValuesDecorator(values) { | ||
@@ -61,2 +68,9 @@ _classCallCheck(this, ValuesDecorator); | ||
_createClass(Flags, [{ | ||
key: "parse", | ||
value: function parse(value) { | ||
return new common.Uint64(value); | ||
} | ||
}]); | ||
return Flags; | ||
@@ -63,0 +77,0 @@ }(ValuesDecorator); |
@@ -23,4 +23,5 @@ 'use strict'; | ||
errors.push( | ||
new SchemaValidationError('duplicate', name, null, { | ||
entity: 'domain', | ||
new SchemaValidationError('duplicate', domains.name, { | ||
type: 'domain', | ||
value: name, | ||
}) | ||
@@ -27,0 +28,0 @@ ); |
'use strict'; | ||
const common = require('@metarhia/common'); | ||
// Field decorators | ||
@@ -19,2 +21,6 @@ | ||
} | ||
parse(value) { | ||
return new common.Uint64(value); | ||
} | ||
} | ||
@@ -21,0 +27,0 @@ |
{ | ||
"name": "metaschema", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Metadata Schema and Interface Definition Language (IDL)", |
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
4
80081
21
2026