Azure / Azure/azure-sdk-for-python

[azure-ai-language-conversation-authoring] Codegen: allow client-scoped path param (e.g., projectName) so we don’t have to patch each operation group

Aperta
#42,850 0 commenti 0 reazioni 1 assegnatario Rivendicata da @amber-Chen-86 Vedi su GitHub
Client Cognitive - Language
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g
PR unite (30g)
217

Descrizione

In azure-ai-language-conversations-authoring, the generated operations require project_name on every call. We introduced ConversationAuthoringProjectClient and patched each operation group to capture project_name in __init__ and pass it through internally. While this works, it creates long-term maintenance overhead and duplicates logic across operation groups.

Python codegen currently doesn’t support client-scoped path parameters. In the future, I will follow up with codegen support to promote a required path parameter (e.g., projectName) to the client scope, so operation methods no longer expose it and operation groups automatically read it from the client context.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.