Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Return generated model instances from connector operations

Fechada
#90 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
api, tooling

Direção de pesquisa

Start with the CodefulSdkGenerator and the generated connector operation methods, using the PR #89 review and pinned contracts as context. Trace how modeled and unmodeled responses are currently represented, then review the serialization/deserialization test coverage requested for nested models, collections, optional fields, and wire-name mappings. Done means generated artifacts, annotations, behavior, tests, and API documentation match the paired generator revision.

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

Descrição

Problem

Generated connector clients expose response model classes, but operation methods currently deserialize JSON responses to weak dictionary types. For example, Office365Client.get_emails_async returns dict[str, Any] | None rather than an instance of its generated response model. This prevents callers and documentation from relying on typed response properties.

Identified in PR #89 review.

Proposed work

  • Update the CodefulSdkGenerator to emit precise operation return annotations when the managed connector contract defines a response schema.
  • Deserialize JSON responses into the corresponding generated model classes, including nested models, collections, optional fields, and wire-name mappings.
  • Preserve dictionary, binary, text, and empty-response behavior when no generated response model applies.
  • Regenerate affected connector clients from pinned contracts and link the paired AzureUX-BPM generator PR.
  • Update API documentation after typed responses are available.

Acceptance criteria

  • Connector operations with modeled response schemas return generated model instances rather than dict[str, Any].
  • Return annotations distinguish modeled, unmodeled, binary, text, and no-content responses.
  • Serialization/deserialization tests cover nested objects, collections, optional fields, and wire-name mappings.
  • Existing connector behavior remains compatible for responses without modeled schemas.
  • Generated artifacts match the paired generator revision.
Linguagem predominante
Python
Estrelas
0
Forks
3
Merge médio
3d 11h
PRs com merge (30d)
10

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 Azure/connectors-python-sdk

Todas as issues de Azure/connectors-python-sdk

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

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