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

Aberta
#104 2 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
typescript

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
PowerShell
Estrelas
129
Forks
35
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de microsoftgraph/msgraph-typescript-typings

Todas as issues de microsoftgraph/msgraph-typescript-typings

Issues semelhantes

Mais issues de Backend & API Design

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.