Skip to content

Commit 6e5cb2b

Browse files
Changes on model-attributes:
- Added isTypePrimitive - Added isNotPrimitive
1 parent 0debcc3 commit 6e5cb2b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/models/model-attributes.model.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ export class ModelAttributessModel {
3636
return getFixedTypeName(this._typeURI);
3737
}
3838

39+
get typeIsPrimitive(): boolean {
40+
return this.typeURI.indexOf('#/') === -1;
41+
}
42+
get typeNotPrimitive(): boolean {
43+
return !this.typeIsPrimitive;
44+
}
45+
3946
/**
4047
* Get the path to the file if is not a primitive
4148
*/

0 commit comments

Comments
 (0)