File tree Expand file tree Collapse file tree
projects/angular-odata/src/lib/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -414,6 +414,10 @@ export class ODataModelField<F> {
414414 return this . parser . isEnumType ( ) ;
415415 }
416416
417+ isEdmType ( ) {
418+ return this . parser . isEdmType ( ) ;
419+ }
420+
417421 enumType ( ) {
418422 const enumType = this . enumForType ? this . enumForType ( this . type ) : undefined ;
419423 //Throw error if not found
@@ -1102,7 +1106,7 @@ export class ODataModelOptions<T> {
11021106 . find ( ( field : ODataModelField < any > ) => field . field === name ) ;
11031107 if ( field !== undefined ) {
11041108 v = Types . isPlainObject ( v ) || ODataModelOptions . isModel ( v ) ? v [ field . name ] : v ;
1105- options = this . api . optionsForType ( field . type ) ;
1109+ options = field . isStructuredType ( ) ? this . api . optionsForType ( field . type ) : undefined ;
11061110 }
11071111 }
11081112 if ( field === undefined ) return undefined ;
You can’t perform that action at this time.
0 commit comments