Azure / Azure/azure-rest-api-specs

CLU SDK missing polymorphic input documentation for `ConversationItemBase`

Open
#19,571 2 comments 0 reactions 1 assignee Claimed by @fxs130430 View on GitHub
Service Service Attention Unified Language
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

Related to Azure/azure-sdk-for-net#29443, I noticed that there are models missing the `discriminator` and [`x-ms-discriminator-value`](https://github.com/Azure/autorest/tree/main/docs/extensions#x-ms-discriminator-value) across 2022-05-01 APIs, including:

* [analyzeconversation.json](https://raw.githubusercontent.com/Azure/azure-rest-api-specs/725f4ca360426a32d20e81eb945065e62c285d6a/specification/cognitiveservices/data-plane/Language/stable/2022-05-01/analyzeconversations.json)
* `ConversationItemBase`
* `TextConversationItem`
* [analyzeconversation-authoring.json](https://raw.githubusercontent.com/Azure/azure-rest-api-specs/725f4ca360426a32d20e81eb945065e62c285d6a/specification/cognitiveservices/data-plane/Language/stable/2022-05-01/analyzeconversations-authoring.json)
* `ConversationalAnalysisAuthoringJobState`
* `ConversationalAnalysisAuthoringDeploymentJobState`
* `ConversationalAnalysisAuthoringJobState`
* `ConversationalAnalysisAuthoringImportProjectJobState`
* `ConversationalAnalysisAuthoringProjectDeletionJobState`
* `ConversationalAnalysisAuthoringTrainingJobState`

These should probably be fixed in the 2022-07-01-preview version of swagger, but we can fix them for now in code. That just won't scale well if/when changes are made to the swagger.

/cc @kristapratico @mshaban-msft

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.