'@odata.type' property missing but required in FileAttachment and ItemAttachment

Ouverte
#104 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
2/5
Temps estimé
1-3 heures
Accessibilité débutants
45/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
À l'abandon
Stack technique
typescript

Piste de recherche

Start by locating the TypeScript definitions for FileAttachment and ItemAttachment and checking how their properties are declared. Add the required @odata.type property with the values given in the issue, then confirm the typings accept those values. The issue names no test files or commands; done means both attachment types expose the required property.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

ADO to GitHub automation label

Both FileAttachment and ItemAttachment require the @odata.type property in order to be accepted by the API when using such commands as Add Attachment. However, this isn't in the typings for either type.

A 422: Unprocessable Entity error with message Cannot process input of abstract type 'Microsoft.OutlookServices.Attachment' occurs when the attachment does not have this property.

For FileAttachment it should use: '@odata.type': '#microsoft.graph.fileAttachment'
For ItemAttachment it should use: '@odata.type': '#microsoft.graph.itemAttachment'

AB#7044

Langage dominant
PowerShell
Étoiles
129
Forks
35
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de microsoftgraph/msgraph-typescript-typings

Toutes les issues de microsoftgraph/msgraph-typescript-typings

Issues similaires

Plus d'issues Backend & API Design

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.