'@odata.type' property missing but required in FileAttachment and ItemAttachment
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
- Domaine
- backend-api-design
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
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
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de microsoftgraph/msgraph-typescript-typings
-
status:waiting-for-triage type:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 48/100
microsoftgraph/msgraph-typescript-typings#756 · 1 réaction ·
-
status:waiting-for-triage type:bug
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
microsoftgraph/msgraph-typescript-typings#748 · 2 réactions ·
-
status:waiting-for-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 48/100
-
status:waiting-for-triage type:feature
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
microsoftgraph/msgraph-typescript-typings#530 · 1 réaction ·
Toutes les issues de microsoftgraph/msgraph-typescript-typings
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
fb55/htmlparser2#2579 ·
Les mainteneurs répondent en général sous 1 jour
-
bug good first issue needs-review
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
trycua/hermes-cua-spaces#17 ·
-
area/channels kind/bug priority/medium
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
nanocoai/nanoclaw#4501 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 69/100
AndyHazz/bookends.koplugin#134 ·