Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Models to Typespec for CLU #24376

Conversation

Zach-King2
Copy link
Contributor

@openapi-pipeline-app
Copy link

Swagger pipeline can not start as the pull request has merge conflicts.

@openapi-workflow-bot
Copy link

Hi, @Zach-King2 Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected]

    @openapi-pipeline-app
    Copy link

    Swagger pipeline can not start as the pull request has merge conflicts.

    @openapi-pipeline-app
    Copy link

    Swagger pipeline started successfully. If there is ApiView generated, it will be updated in this comment.

    @ghost ghost added Cognitive Services Profile Azure API profile issues. labels Jun 8, 2023
    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jun 8, 2023

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️LintDiff succeeded [Detail] [Expand]
    Validation passes for LintDiff.
    compared tags (via openapi-validator v2.1.3) new version base version
    default default(64bc7e1) default(feature-cognitiveservices-Language.Conversations-typespec)
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️SwaggerAPIView succeeded [Detail] [Expand]
    ️️✔️CadlAPIView succeeded [Detail] [Expand]
    ️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    ️❌TypeSpec Validation: 4 Errors, 14 Warnings failed [Detail]
    Rule Message
    SwaggerNotExistInPRBranch "details":"The generated swagger file @azure-tools/typespec-autorest/azure.ai.language.conversations.json from typespec specification/cognitiveservices/Language.Conversations is not on the branch."
    MissingExamplesDirectory "details":"The 'examples' directory is missing in the typespec folder specification/cognitiveservices/OpenAI.Inference,
    please ensure the 'examples' is added in the PR."
    SwaggerNotExistInPRBranch "details":"The generated swagger file 2022-12-01/openapi.json from typespec specification/cognitiveservices/OpenAI.Inference is not on the branch."
    SwaggerNotExistInPRBranch "details":"The generated swagger file 2023-03-15-preview/openapi.json from typespec specification/cognitiveservices/OpenAI.Inference is not on the branch."
    ⚠️ @azure-tools/typespec-azure-core/casing-style The names of Namespace types must use PascalCase
    Location: specification/cognitiveservices/Language.Conversations/main.tsp#L13
    ⚠️ @azure-tools/typespec-azure-core/casing-style The names of Model types must use PascalCase
    Location: specification/cognitiveservices/Language.Conversations/main.tsp#L30
    ⚠️ @azure-tools/typespec-azure-core/casing-style The names of Model types must use PascalCase
    Location: specification/cognitiveservices/Language.Conversations/main.tsp#L34
    ⚠️ @azure-tools/typespec-azure-core/bad-record-type ConversationItemBase should not use 'extends Record'. Use 'extends Record' instead.
    Location: specification/cognitiveservices/Language.Conversations/main.tsp#L86
    ⚠️ @azure-tools/typespec-azure-core/bad-record-type LuisParameters should not use 'extends Record'. Use 'extends Record' instead.
    Location: specification/cognitiveservices/Language.Conversations/main.tsp#L126
    ⚠️ @azure-tools/typespec-azure-core/no-object Don't use 'object'.
    Location: specification/cognitiveservices/Language.Conversations/common.tsp#L79
    ⚠️ @azure-tools/typespec-azure-core/bad-record-type InnerErrorModel should not use 'extends Record'. Use 'extends Record' instead.
    Location: specification/cognitiveservices/Language.Conversations/common.tsp#L22
    ⚠️ @typespec/http/no-routes Current spec is not exposing any routes. This could be to not having the service namespace marked with @service.
    Location: [azure-rest-api-specs/blob/64bc7e13a8c465d43bdd00dbec7c18874ebd3245/#L1](https://github.com/Azure/azure-rest-api-specs/blob/64bc7e13a8c465d43bdd00dbec7c18874ebd3245/#L1)
    ⚠️ @azure-tools/typespec-autorest/union-unsupported Unions cannot be emitted to OpenAPI v2 unless all options are literals of the same type.
    Location: cognitiveservices/OpenAI.Inference/models/completions.create.tsp#L198
    ⚠️ @azure-tools/typespec-autorest/union-unsupported Unions cannot be emitted to OpenAPI v2 unless all options are literals of the same type.
    Location: cognitiveservices/OpenAI.Inference/models/chat.completions.tsp#L162
    ⚠️ @azure-tools/typespec-autorest/union-unsupported Unions cannot be emitted to OpenAPI v2 unless all options are literals of the same type.
    Location: cognitiveservices/OpenAI.Inference/models/completions.create.tsp#L198
    ⚠️ @azure-tools/typespec-autorest/union-unsupported Unions cannot be emitted to OpenAPI v2 unless all options are literals of the same type.
    Location: cognitiveservices/OpenAI.Inference/models/chat.completions.tsp#L162
    ⚠️ MissingTypeSpecProjectConfig "details":"The configuration 'output-file' for '@azure-tools/typespec-autorest' is missing in the tspconfig.yaml under folder specification/cognitiveservices/OpenAI.Inference,
    please ensure it is added in the configuration of the emitter '@azure-tools/typespec-autorest'."
    ⚠️ MissingTypeSpecProjectConfig "details":"The configuration 'azure-resource-provider-folder' for '@azure-tools/typespec-autorest' is missing in the tspconfig.yaml under folder specification/cognitiveservices/OpenAI.Inference,
    please ensure it is added in the configuration of the emitter '@azure-tools/typespec-autorest'."
    ️️✔️PR Summary succeeded [Detail] [Expand]
    Validation passes for Summary.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jun 8, 2023

    Swagger Generation Artifacts

    ️️✔️ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

    Breaking Changes Tracking

    ️❌ azure-sdk-for-python failed [Detail]
    • Code Generator Failed [Logs] Generate from 11cb39463e4ee52698e5538a39ee92f87b06ff68. SDK Automation 14.0.0
      command	sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json
      cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
      cmdout	[automation_generate.sh] [Autorest]/mnt/vss/_work/1/s/azure-sdk-for-python_tmp/venv-sdk/auto_temp.json does not exist!!!Error happened during codegen
      error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-python]: sh scripts/automation_generate.sh
      warn	Skip package processing as generation is failed
    ️❌ azure-sdk-for-net-track2 failed [Detail]
    • Pipeline Framework Failed [Logs] Generate from 11cb39463e4ee52698e5538a39ee92f87b06ff68. SDK Automation 14.0.0
      command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
      command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mWrite-Error: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/common/scripts/TypeSpec-Project-Process.ps1:26
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m  26 | �[0m   $serviceDir = �[36;1mGet-ServiceDir $tspConfig $repoRoot�[0m
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mMissing service-dir in parameters section of tspconfig.yaml. Please
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1mrefer to
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1mhttps://github.com/Azure/azure-rest-api-specs/blob/main/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml for the right schema.
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
      warn	No file changes detected after generation
      the given reference name 'refs/heads/sdkAuto/24376/' is not valid
      Error: the given reference name 'refs/heads/sdkAuto/24376/' is not valid
    • error	Fatal error: the given reference name 'refs/heads/sdkAuto/24376/' is not valid
      error	The following packages are still pending:
      error
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jun 8, 2023

    Generated ApiView

    Language Package Name ApiView Link
    TypeSpec Language.Conversations https://apiview.dev/Assemblies/Review/1e8d45d1e80e4878b6c4d287830fa8d6

    Copy link
    Member

    @heaths heaths left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Much better. Just one suggested change. Basically, don't define it as a model but "inline" and the model should be elided.

    Copy link
    Member

    @heaths heaths left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    After resolving comments, could we maybe merge and start a new topic branch/PR?

    @Zach-King2
    Copy link
    Contributor Author

    After resolving comments, could we maybe merge and start a new topic branch/PR?

    Yes that sounds great, I just made the requested changes.

    Copy link
    Member

    @heaths heaths left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Looking great! There's one build validation error that makes me think the swagger wasn't regenerated with your last TypeSpec update. Can you double check in your local branch and see if it gets updated?

    @heaths heaths merged commit 189c09f into Azure:feature-cognitiveservices-Language.Conversations-typespec Jun 26, 2023
    heaths pushed a commit that referenced this pull request Jun 29, 2023
    * setup
    
    * modified CODEOWNERS
    
    * new changes
    
    * new changes
    
    * new changes
    
    * fixing validation errors
    
    * adding models
    
    * added models
    
    * resolved comments
    
    * added AADToken
    
    * defined AADToken as model
    
    * added common.tsp
    
    * edited formatting
    
    * fixed syntax
    
    * resolved comments
    
    * removed required property
    
    * changed ErrorResponse to a model
    
    * model updates
    quentinRobinson pushed a commit to quentinRobinson/azure-rest-api-specs that referenced this pull request Jan 16, 2024
    * setup
    
    * modified CODEOWNERS
    
    * new changes
    
    * new changes
    
    * new changes
    
    * fixing validation errors
    
    * adding models
    
    * added models
    
    * resolved comments
    
    * added AADToken
    
    * defined AADToken as model
    
    * added common.tsp
    
    * edited formatting
    
    * fixed syntax
    
    * resolved comments
    
    * removed required property
    
    * changed ErrorResponse to a model
    
    * model updates
    catalinaperalta added a commit that referenced this pull request Apr 17, 2024
    …#27392)
    
    * Adding example TypeSpec definition for CLU (#24309)
    
    * setup
    
    * modified CODEOWNERS
    
    * new changes
    
    * new changes
    
    * new changes
    
    * fixing validation errors
    
    * Adding Models to Typespec for CLU (#24376)
    
    * setup
    
    * modified CODEOWNERS
    
    * new changes
    
    * new changes
    
    * new changes
    
    * fixing validation errors
    
    * adding models
    
    * added models
    
    * resolved comments
    
    * added AADToken
    
    * defined AADToken as model
    
    * added common.tsp
    
    * edited formatting
    
    * fixed syntax
    
    * resolved comments
    
    * removed required property
    
    * changed ErrorResponse to a model
    
    * model updates
    
    * Adding Path Object to Typespec for CLU (#24597)
    
    * added route
    
    * added examples to path object
    
    * fixed example file paths
    
    * route changes
    
    * removed union
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixed example file paths
    
    * removed example
    
    * updated route
    
    * rebase
    
    * rebase
    
    * rebase
    
    * added examples to path object
    
    * fixed example file paths
    
    * rebase
    
    * edited config
    
    * added comment
    
    * removed import
    
    * added team as codeowners
    
    * removed examples
    
    * added version enum and edited tspconfig
    
    * added doc decorators to enums
    
    * added more doc decorators to enums
    
    * validation fixes
    
    * lint diff fix
    
    * suppressed warnings
    
    * supressed enum warnings and removed '/language' from hostTemplate
    
    * Model Changes in TypeSpec for CLU (#24866)
    
    * added route
    
    * added examples to path object
    
    * fixed example file paths
    
    * route changes
    
    * removed union
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixed example file paths
    
    * removed example
    
    * updated route
    
    * rebase
    
    * rebase
    
    * rebase
    
    * added examples to path object
    
    * fixed example file paths
    
    * rebase
    
    * edited config
    
    * added comment
    
    * removed import
    
    * added team as codeowners
    
    * removed examples
    
    * added version enum and edited tspconfig
    
    * added doc decorators to enums
    
    * added more doc decorators to enums
    
    * validation fixes
    
    * lint diff fix
    
    * suppressed warnings
    
    * supressed enum warnings and removed '/language' from hostTemplate
    
    * added projectedname decorator to some properties
    
    * edits to models in common.tsp
    
    * edited model properties in main.tsp
    
    * TypeSpec updates for SDK generation (#24973)
    
    * added route
    
    * added examples to path object
    
    * fixed example file paths
    
    * route changes
    
    * removed union
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixed example file paths
    
    * removed example
    
    * updated route
    
    * rebase
    
    * rebase
    
    * rebase
    
    * added examples to path object
    
    * fixed example file paths
    
    * rebase
    
    * edited config
    
    * added comment
    
    * removed import
    
    * added team as codeowners
    
    * removed examples
    
    * added version enum and edited tspconfig
    
    * added doc decorators to enums
    
    * added more doc decorators to enums
    
    * validation fixes
    
    * lint diff fix
    
    * suppressed warnings
    
    * supressed enum warnings and removed '/language' from hostTemplate
    
    * added projectedname decorator to some properties
    
    * edits to models in common.tsp
    
    * edited model properties in main.tsp
    
    * fixed spacing
    
    * updating config
    
    * spacing fix
    
    * modified service-dir path
    
    * removed csharp
    
    * tsp config changes
    
    * removed autorest import
    
    * LuisTargetIntentResult model update
    
    * added csharp emitter
    
    * model change
    
    * removed autorest
    
    * model property change
    
    * modified model property
    
    * useauth change
    
    * capitalized endpoint
    
    * changed endpoint to lowercase
    
    * back to uppercase
    
    * Added @convientAPI decorator for SDK Generation (#25179)
    
    * added route
    
    * added examples to path object
    
    * fixed example file paths
    
    * route changes
    
    * removed union
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixed example file paths
    
    * removed example
    
    * updated route
    
    * rebase
    
    * rebase
    
    * rebase
    
    * added examples to path object
    
    * fixed example file paths
    
    * rebase
    
    * edited config
    
    * added comment
    
    * removed import
    
    * added team as codeowners
    
    * removed examples
    
    * added version enum and edited tspconfig
    
    * added doc decorators to enums
    
    * added more doc decorators to enums
    
    * validation fixes
    
    * lint diff fix
    
    * suppressed warnings
    
    * supressed enum warnings and removed '/language' from hostTemplate
    
    * added projectedname decorator to some properties
    
    * edits to models in common.tsp
    
    * edited model properties in main.tsp
    
    * fixed spacing
    
    * updating config
    
    * spacing fix
    
    * modified service-dir path
    
    * removed csharp
    
    * tsp config changes
    
    * removed autorest import
    
    * LuisTargetIntentResult model update
    
    * added csharp emitter
    
    * model change
    
    * removed autorest
    
    * model property change
    
    * modified model property
    
    * useauth change
    
    * capitalized endpoint
    
    * changed endpoint to lowercase
    
    * back to uppercase
    
    * sdk generation fix
    
    * Removed discriminator from AnalyzeConversationTaskResult model (#25250)
    
    * model change for sdk
    
    * modified result property
    
    * Added 2023-04-01 and 2023-04-15-preview version models to TypeSpec for Analyze Conversations (#24899)
    
    Added 2023-04-01 and 2023-04-15-preview version models to TypeSpec for Analyze Conversations
    ---------
    
    Co-authored-by: Quentin Robinson <[email protected]>
    
    * moved to nonstandard LRO and general fixes
    
    * fixed tsp
    
    * added AnalyzeConversationPiiTask
    
    * first commit for text analytics tsp
    
    * second commit
    
    * fixed refactoring errors
    
    * refactor analyzetext
    
    * fixed routes
    
    * added 2023-04-01 ga version
    
    * cleanup
    
    * Cleanup
    
    * general fixes
    
    * updated tsp config and eng folder to match main
    
    * Adding example TypeSpec definition for CLU (#24309)
    
    * setup
    
    * modified CODEOWNERS
    
    * new changes
    
    * new changes
    
    * new changes
    
    * fixing validation errors
    
    * Adding Models to Typespec for CLU (#24376)
    
    * setup
    
    * modified CODEOWNERS
    
    * new changes
    
    * new changes
    
    * new changes
    
    * fixing validation errors
    
    * adding models
    
    * added models
    
    * resolved comments
    
    * added AADToken
    
    * defined AADToken as model
    
    * added common.tsp
    
    * edited formatting
    
    * fixed syntax
    
    * resolved comments
    
    * removed required property
    
    * changed ErrorResponse to a model
    
    * model updates
    
    * Adding Path Object to Typespec for CLU (#24597)
    
    * added route
    
    * added examples to path object
    
    * fixed example file paths
    
    * route changes
    
    * removed union
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixed example file paths
    
    * removed example
    
    * updated route
    
    * rebase
    
    * rebase
    
    * rebase
    
    * added examples to path object
    
    * fixed example file paths
    
    * rebase
    
    * edited config
    
    * added comment
    
    * removed import
    
    * added team as codeowners
    
    * removed examples
    
    * added version enum and edited tspconfig
    
    * added doc decorators to enums
    
    * added more doc decorators to enums
    
    * validation fixes
    
    * lint diff fix
    
    * suppressed warnings
    
    * supressed enum warnings and removed '/language' from hostTemplate
    
    * Model Changes in TypeSpec for CLU (#24866)
    
    * added route
    
    * added examples to path object
    
    * fixed example file paths
    
    * route changes
    
    * removed union
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixed example file paths
    
    * removed example
    
    * updated route
    
    * rebase
    
    * rebase
    
    * rebase
    
    * added examples to path object
    
    * fixed example file paths
    
    * rebase
    
    * edited config
    
    * added comment
    
    * removed import
    
    * added team as codeowners
    
    * removed examples
    
    * added version enum and edited tspconfig
    
    * added doc decorators to enums
    
    * added more doc decorators to enums
    
    * validation fixes
    
    * lint diff fix
    
    * suppressed warnings
    
    * supressed enum warnings and removed '/language' from hostTemplate
    
    * added projectedname decorator to some properties
    
    * edits to models in common.tsp
    
    * edited model properties in main.tsp
    
    * TypeSpec updates for SDK generation (#24973)
    
    * added route
    
    * added examples to path object
    
    * fixed example file paths
    
    * route changes
    
    * removed union
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixed example file paths
    
    * removed example
    
    * updated route
    
    * rebase
    
    * rebase
    
    * rebase
    
    * added examples to path object
    
    * fixed example file paths
    
    * rebase
    
    * edited config
    
    * added comment
    
    * removed import
    
    * added team as codeowners
    
    * removed examples
    
    * added version enum and edited tspconfig
    
    * added doc decorators to enums
    
    * added more doc decorators to enums
    
    * validation fixes
    
    * lint diff fix
    
    * suppressed warnings
    
    * supressed enum warnings and removed '/language' from hostTemplate
    
    * added projectedname decorator to some properties
    
    * edits to models in common.tsp
    
    * edited model properties in main.tsp
    
    * fixed spacing
    
    * updating config
    
    * spacing fix
    
    * modified service-dir path
    
    * removed csharp
    
    * tsp config changes
    
    * removed autorest import
    
    * LuisTargetIntentResult model update
    
    * added csharp emitter
    
    * model change
    
    * removed autorest
    
    * model property change
    
    * modified model property
    
    * useauth change
    
    * capitalized endpoint
    
    * changed endpoint to lowercase
    
    * back to uppercase
    
    * Added @convientAPI decorator for SDK Generation (#25179)
    
    * added route
    
    * added examples to path object
    
    * fixed example file paths
    
    * route changes
    
    * removed union
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixes
    
    * fixed example file paths
    
    * removed example
    
    * updated route
    
    * rebase
    
    * rebase
    
    * rebase
    
    * added examples to path object
    
    * fixed example file paths
    
    * rebase
    
    * edited config
    
    * added comment
    
    * removed import
    
    * added team as codeowners
    
    * removed examples
    
    * added version enum and edited tspconfig
    
    * added doc decorators to enums
    
    * added more doc decorators to enums
    
    * validation fixes
    
    * lint diff fix
    
    * suppressed warnings
    
    * supressed enum warnings and removed '/language' from hostTemplate
    
    * added projectedname decorator to some properties
    
    * edits to models in common.tsp
    
    * edited model properties in main.tsp
    
    * fixed spacing
    
    * updating config
    
    * spacing fix
    
    * modified service-dir path
    
    * removed csharp
    
    * tsp config changes
    
    * removed autorest import
    
    * LuisTargetIntentResult model update
    
    * added csharp emitter
    
    * model change
    
    * removed autorest
    
    * model property change
    
    * modified model property
    
    * useauth change
    
    * capitalized endpoint
    
    * changed endpoint to lowercase
    
    * back to uppercase
    
    * sdk generation fix
    
    * Removed discriminator from AnalyzeConversationTaskResult model (#25250)
    
    * model change for sdk
    
    * modified result property
    
    * Added 2023-04-01 and 2023-04-15-preview version models to TypeSpec for Analyze Conversations (#24899)
    
    Added 2023-04-01 and 2023-04-15-preview version models to TypeSpec for Analyze Conversations
    ---------
    
    Co-authored-by: Quentin Robinson <[email protected]>
    
    * moved to nonstandard LRO and general fixes
    
    * fixed tsp
    
    * added AnalyzeConversationPiiTask
    
    * first commit for text analytics tsp
    
    * second commit
    
    * fixed refactoring errors
    
    * refactor analyzetext
    
    * added 2023-04-01 ga version
    
    * general fixes
    
    * cleanup
    
    * Cleanup
    
    * updated tsp config and eng folder to match main
    
    * reset som eng/* and package files to main
    
    * update eng files
    
    * reset files to main
    
    * reset codeowners to main
    
    * Add support for version 2023-11-15-preview in Language.AnalyzeText
    
    * Added exmaples and updated added a language interface
    
    * Add scriptCode property to DetectedLanguage model
    
    * Fix general Typespec errors
    
    * Remove exampleValidation.txt file
    
    * revert file deletions
    
    * Update entity recognition documentation
    
    * Fix general typespec errors
    
    * Update language detection examples
    
    * removed unused refrences and fix errors
    
    * updated LanguageConversations
    
    * fix openapi pipeline errors
    
    * fix more pipeline errors
    
    * fixed typespec compile warnings
    
    * remove examples from typespec for sdk generation
    
    * tsv fixes
    
    * Update SentimentResponse model and analyzetext.json for document response
    
    * Update healthcare and summarization models
    
    * Update SentimentResponseWithDocumentDetectedLanguage model
    
    * fixed prettier checks
    
    * TSV validation fixes
    
    * Prettier fixes
    
    * Rename C# project to AnalyzeText
    
    * Add query parameter for generating summary
    
    * ypeSpec Validation fixes
    
    * fixed server endpoint
    
    * fixed missing comma
    
    * Remove x-ms-examples from analyzeconversations.json and analyzetext.json
    
    * mitigate some breaking changes
    
    * fixed some breaking changes
    
    * breaking change fix
    
    * more breaking change fixes
    
    * fixed more breaking changes
    
    * fixed breaking changes
    
    * fixed more breaking changes
    
    * fixed breaking change
    
    * breaking changes
    
    * reset unintended changes
    
    * added examples back
    
    * tsv fixes
    
    * fixed examples
    
    * Update Language.Conversations version 2023-11-15-preview doc
    
    * fixed models and removed unneeded file
    
    * fixed breaking changes
    
    * fix breaking change
    
    * more breaking changes
    
    * fix breaking changes
    
    * breaking chagnes fix
    
    * commented examples due to not working with autorest
    
    * quote autorest flavor
    
    * removed flavor
    
    * add clientname for Association
    
    * rename for csharp
    
    * rename for csharp
    
    * bug fix on TemporalSpanMetadata
    
    * removed invalid extends
    
    * fix more bad extends
    
    * Add docs for common.models.tsp
    
    * Updated for entities and language
    
    * remove the base object Record<Unknown>
    
    * tsv fixes
    
    * spell check and projectedName to encodedName
    
    * fixed encodedname
    
    * add docs to healthcare tsp
    
    * Few more missing docs
    
    * fix tsv errors
    
    * tsv fixes
    
    * Some more missing docs
    
    * spec
    
    * missing docs
    
    * fixing typespec validation
    
    * tsv fixes
    
    * Fix swagger spell check errors
    
    * fix type validation
    
    * typo in /common.models.tsp
    
    * Add @doc decorators to the Summarization typespec file
    
    * More
    
    * Add Keyphrase and sentiment
    
    * .
    
    * Update custom-words.txt to contain picometers
    
    * Fix tsv error
    
    * Rename the operation IDs in the examples to match
    
    * Update examples for analyze-conversations
    
    * tsv compile
    
    * fix exclude parameter
    
    * run tsv compile
    
    * Address comments
    
    * Some more changes
    
    * remove 2023-04-15-preview
    
    * remove @needsRoute
    
    * Remove readme
    
    * addressed PR comments
    
    * removed @clientname from models
    
    * revert removing QnA from analyze-conversations
    
    * Add some docs
    
    * Address doc comments
    
    * fix spellcheck
    
    * Remove Record<Unknown>
    
    * small change
    
    * fix analyze-conv sync
    
    * fix km
    
    * removing unnecessary QnA reference from analyze-conversations
    
    * Update specification/cognitiveservices/Language.Conversations/main.tsp
    
    Co-authored-by: catalinaperalta <[email protected]>
    
    * Update specification/cognitiveservices/Language.AnalyzeText/client.tsp
    
    Co-authored-by: catalinaperalta <[email protected]>
    
    * Address comments
    
    * Add client.tsp
    
    * fx tsp
    
    * tsv compile
    
    * remove extra impor
    
    * Update specification/cognitiveservices/Language.AnalyzeText/tspconfig.yaml
    
    Co-authored-by: catalinaperalta <[email protected]>
    
    * make enable?:true
    
    * fix tsp
    
    * address comment
    
    * remaining comments
    
    * use Azure.Core.Foundations.ErrorResponse
    
    * Address comments of LuisResult
    
    * Update doc comments
    
    * tsv compile
    
    ---------
    
    Co-authored-by: Zach-King2 <[email protected]>
    Co-authored-by: Bidisha Chakraborty <[email protected]>
    Co-authored-by: Dimitry Vislov <[email protected]>
    Co-authored-by: Bidisha Chakraborty <[email protected]>
    Co-authored-by: Mohamed Abbas <[email protected]>
    Co-authored-by: catalinaperalta <[email protected]>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Cognitive Services Profile Azure API profile issues.
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    3 participants