microsoftgraph / microsoftgraph/msgraph-sdk-java
Channel layoutType property is missing in the SDK
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- Java
- Estrelas
- 444
- Forks
- 154
- Merge médio
- 18h 28min
- PRs com merge (30d)
- 4
Descrição
Describe the bug
The property layoutType is missing for the graph.models.Channel-Object. Without it reading the actual value of a channel is hard. Patching the property can be done with some workarounds using additionalData (see below).
The object:
A graph request:
https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}
Expected behavior
The property should be present in the graph.models.Channel-Object. Also an enum for the two allowed values would be nice.
How to reproduce
Simply use some sdk version and try to read or patch the layoutType of a channel.
SDK Version
6.63
Latest version known to work for scenario above?
none I guess
Known Workarounds
For a patch you can use one of:
.getAdditionalData().put("layoutType", "post");
.getAdditionalData().put("layoutType", "chat");
I don't know if there is a workaround for reading.
Debug output
No response
Configuration
This should not impact the issue, since it is not present in the models of the java-SDK.
Other information
No response
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece com o modelo graph.models.Channel e compare-o com o Microsoft Graph channels endpoint mostrado no issue. Adicione suporte para ler e aplicar patch em layoutType, incluindo os dois valores permitidos, e depois verifique se o SDK expõe a propriedade sem usar additionalData.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- java
- Domínio
- api
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Pouca atividade
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 64/100