Skip to content

Commit 6e0ea38

Browse files
committed
Fix an issue on type validation
1 parent 9722f6f commit 6e0ea38

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ module.exports = function (grunt) {
5353
]);
5454

5555
grunt.registerTask('build', [
56+
'clean',
5657
'json_merge',
5758
'concat:systemModule',
5859
'jsbeautifier',

src/metamodel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,7 @@ function isValidSchema(object, schema) {
16091609

16101610
typeRef = getClassName(typeSchema);
16111611
typeRef = object[typeRef];
1612+
typeRef = typeRef.replace('@', ''); // backward compatibility
16121613
if (isCustomType(typeRef)) {
16131614
if (store.type[typeRef]) {
16141615
if (store.type[typeRef].schema) {
@@ -1655,6 +1656,7 @@ function isValidSchema(object, schema) {
16551656

16561657
typeRef = getRealTypeName(typeSchema);
16571658
typeRef = object[typeRef];
1659+
typeRef = typeRef.replace('@', ''); // backward compatibility
16581660
if (isCustomType(typeRef)) {
16591661
if (store.type[typeRef]) {
16601662
if (store.type[typeRef].schema) {

0 commit comments

Comments
 (0)