fix: drop odata type from foundation selects

This commit is contained in:
Ahmed Darrazi 2025-12-28 23:14:39 +01:00
parent 59c74246d6
commit 18cf22a7ed
2 changed files with 5 additions and 5 deletions

View File

@ -331,7 +331,7 @@
], ],
'assignmentFilter' => [ 'assignmentFilter' => [
'resource' => 'deviceManagement/assignmentFilters', 'resource' => 'deviceManagement/assignmentFilters',
'allowed_select' => ['id', 'displayName', 'description', 'platform', 'rule', '@odata.type', 'roleScopeTagIds'], 'allowed_select' => ['id', 'displayName', 'description', 'platform', 'rule', 'roleScopeTagIds'],
'allowed_expand' => [], 'allowed_expand' => [],
'type_family' => [ 'type_family' => [
'#microsoft.graph.deviceAndAppManagementAssignmentFilter', '#microsoft.graph.deviceAndAppManagementAssignmentFilter',
@ -348,7 +348,7 @@
], ],
'roleScopeTag' => [ 'roleScopeTag' => [
'resource' => 'deviceManagement/roleScopeTags', 'resource' => 'deviceManagement/roleScopeTags',
'allowed_select' => ['id', 'displayName', 'description', '@odata.type', 'isBuiltIn'], 'allowed_select' => ['id', 'displayName', 'description', 'isBuiltIn'],
'allowed_expand' => [], 'allowed_expand' => [],
'type_family' => [ 'type_family' => [
'#microsoft.graph.roleScopeTag', '#microsoft.graph.roleScopeTag',
@ -365,7 +365,7 @@
], ],
'notificationMessageTemplate' => [ 'notificationMessageTemplate' => [
'resource' => 'deviceManagement/notificationMessageTemplates', 'resource' => 'deviceManagement/notificationMessageTemplates',
'allowed_select' => ['id', 'displayName', 'description', 'brandingOptions', '@odata.type', 'lastModifiedDateTime'], 'allowed_select' => ['id', 'displayName', 'description', 'brandingOptions', 'lastModifiedDateTime'],
'allowed_expand' => [], 'allowed_expand' => [],
'type_family' => [ 'type_family' => [
'#microsoft.graph.notificationMessageTemplate', '#microsoft.graph.notificationMessageTemplate',

View File

@ -42,8 +42,8 @@
$query = $result['query']; $query = $result['query'];
$warnings = $result['warnings']; $warnings = $result['warnings'];
expect($query['$select'])->toBe(['id', 'displayName']); expect($query['$select'])->toBe('id,displayName');
expect($query['$expand'])->toBe(['assignments']); expect($query['$expand'])->toBe('assignments');
expect($warnings)->not->toBeEmpty(); expect($warnings)->not->toBeEmpty();
}); });