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

Abierto
#104 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
PowerShell
Estrellas
129
Forks
35
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoftgraph/msgraph-typescript-typings

Todos los issues de microsoftgraph/msgraph-typescript-typings

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.