Skip to content

[Language] Remove duplication for PreBuiltResult and InputError#23788

Merged
heaths merged 4 commits intoAzure:mainfrom
minhanh-phan:remove-language-swagger-duplication
May 4, 2023
Merged

[Language] Remove duplication for PreBuiltResult and InputError#23788
heaths merged 4 commits intoAzure:mainfrom
minhanh-phan:remove-language-swagger-duplication

Conversation

@minhanh-phan
Copy link
Member

Data Plane API - Pull Request

PreBuiltResult and RequestStatistics break autorest schema check because they are duplicated in both common.json and analyzetext.json. Edit all the analyzetext.json reference to point to common.json. Unify InputError with DocumentError.

API Info: The Basics

Most of the information about your service should be captured in the issue that serves as your API Spec engagement record.

  • Link to API Spec engagement record issue:

Is this review for (select one):

  • a private preview
  • a public preview
  • GA release

Change Scope

This section will help us focus on the specific parts of your API that are new or have been modified.
Please share a link to the design document for the new APIs, a link to the previous API Spec document (if applicable), and the root paths that have been updated.

  • Design Document:
  • Previous API Spec Doc:
  • Updated paths:

❔Got questions? Need additional info?? We are here to help!

Contact us!

The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

Click here for links to tools, specs, guidelines & other good stuff

Tooling

Guidelines & Specifications

Helpful Links

@openapi-workflow-bot
Copy link

Hi, @minhanh-phan 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. vscswagger@microsoft.com

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 2, 2023

    Swagger Validation Report

    ️❌BreakingChange: 6 Errors, 0 Warnings failed [Detail]
    compared swaggers (via Oad v0.10.4)] new version base version
    analyzetext.json 2023-04-01(94e1528) 2023-04-01(main)
    common.json 2023-04-01(94e1528) 2023-04-01(main)
    analyzetext.json 2023-04-01(94e1528) 2023-04-01(main)
    common.json 2023-04-01(94e1528) 2023-04-01(main)
    Rule Message
    1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/common.json#L383:11
    Old: cognitiveservices/data-plane/Language/common.json#L383:11
    1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: Language/stable/2023-04-01/common.json#L383:11
    Old: Language/stable/2023-04-01/common.json#L383:11
    1022 - RemovedAdditionalProperties The new version removes the 'additionalProperties' element.
    New: cognitiveservices/data-plane/Language/common.json#L345:5
    Old: cognitiveservices/data-plane/Language/common.json#L345:5
    1022 - RemovedAdditionalProperties The new version removes the 'additionalProperties' element.
    New: cognitiveservices/data-plane/Language/common.json#L387:9
    Old: cognitiveservices/data-plane/Language/common.json#L387:9
    1022 - RemovedAdditionalProperties The new version removes the 'additionalProperties' element.
    New: Language/stable/2023-04-01/common.json#L345:5
    Old: Language/stable/2023-04-01/common.json#L345:5
    1022 - RemovedAdditionalProperties The new version removes the 'additionalProperties' element.
    New: Language/stable/2023-04-01/common.json#L387:9
    Old: Language/stable/2023-04-01/common.json#L387:9
    ️❌Breaking Change(Cross-Version): 3 Errors, 111 Warnings failed [Detail]
    compared swaggers (via Oad v0.10.4)] new version base version
    analyzetext.json 2023-04-01(94e1528) 2023-04-01(main)
    analyzetext.json 2023-04-01(94e1528) 2022-10-01-preview(main)
    common.json 2023-04-01(94e1528) 2023-04-01(main)
    common.json 2023-04-01(94e1528) 2022-10-01-preview(main)

    The following breaking changes are detected by comparison with the latest stable version:

    Rule Message
    1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/common.json#L383:11
    Old: Language/stable/2023-04-01/common.json#L383:11
    1022 - RemovedAdditionalProperties The new version removes the 'additionalProperties' element.
    New: cognitiveservices/data-plane/Language/common.json#L345:5
    Old: Language/stable/2023-04-01/common.json#L345:5
    1022 - RemovedAdditionalProperties The new version removes the 'additionalProperties' element.
    New: cognitiveservices/data-plane/Language/common.json#L387:9
    Old: Language/stable/2023-04-01/common.json#L387:9


    The following breaking changes are detected by comparison with the latest preview version:

    Only 30 items are listed, please refer to log for more details.

    Rule Message
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AgeResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'VolumeResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'SpeedResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AreaResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'LengthResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'InformationResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'TemperatureResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'WeightResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CurrencyResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'BooleanResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'DateTimeResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'NumberResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'OrdinalResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'TemporalSpanResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'NumericRangeResolution' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'TemporalModifier' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'TimeExpression' removed or renamed?
    New: cognitiveservices/data-plane/Language/analyzetext.json#L251:3
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L263:3
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/analyzetext.json#L794:11
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L812:11
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/common.json#L383:11
    Old: Language/preview/2022-10-01-preview/common.json#L383:11
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/common.json#L383:11
    Old: Language/preview/2022-10-01-preview/common.json#L383:11
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/analyzetext.json#L1474:11
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L1483:11
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/common.json#L383:11
    Old: Language/preview/2022-10-01-preview/common.json#L383:11
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/analyzetext.json#L1498:11
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L1514:11
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/analyzetext.json#L1603:11
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L1636:11
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/common.json#L383:11
    Old: Language/preview/2022-10-01-preview/common.json#L383:11
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/analyzetext.json#L1772:11
    Old: Language/preview/2022-10-01-preview/analyzetext.json#L2471:11
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/common.json#L383:11
    Old: Language/preview/2022-10-01-preview/common.json#L383:11
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/common.json#L383:11
    Old: Language/preview/2022-10-01-preview/common.json#L383:11
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/common.json#L383:11
    Old: Language/preview/2022-10-01-preview/common.json#L383:11
    ⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
    New: cognitiveservices/data-plane/Language/common.json#L383:11
    Old: Language/preview/2022-10-01-preview/common.json#L383:11
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️LintDiff: 218 Warnings warning [Detail]
    compared tags (via openapi-validator v2.0.0) new version base version
    release_2023-04-01 release_2023-04-01(94e1528) release_2023-04-01(main)
    release_2023_04_01 release_2023_04_01(94e1528) release_2023_04_01(main)

    [must fix]The following errors/warnings are introduced by current PR:

    Only 30 items are listed, please refer to log for more details.

    Rule Message Related RPC [For API reviewers]
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L804
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1117
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1117
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1147
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1147
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1454
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1454
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1454
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1484
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1484
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1484
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1583
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1583
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1583
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1583
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1613
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1613
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1613
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1613
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1752
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1752
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1752
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1752
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1752
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1782
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1782
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1782
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1782
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L1782
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L2084


    The following errors/warnings exist before current PR submission:

    Only 30 items are listed, please refer to log for more details.

    Rule Message
    HostParametersValidation The host parameter must be called 'endpoint'.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L39
    HostParametersValidation The host parameter must be typed 'type 'string', format 'url''.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L39
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L2040
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L2384
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L2387
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L2390
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L2393
    HostParametersValidation The host parameter must be called 'endpoint'.
    Location: Language/stable/2023-04-01/analyzetext.json#L39
    HostParametersValidation The host parameter must be typed 'type 'string', format 'url''.
    Location: Language/stable/2023-04-01/analyzetext.json#L39
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Language/stable/2023-04-01/analyzetext.json#L2040
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Language/stable/2023-04-01/analyzetext.json#L2384
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Language/stable/2023-04-01/analyzetext.json#L2387
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Language/stable/2023-04-01/analyzetext.json#L2390
    IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Language/stable/2023-04-01/analyzetext.json#L2393
    ⚠️ OperationId OperationId should be of the form 'Noun_Verb'
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L49
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L80
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L82
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L143
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L145
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L145
    ⚠️ GetInOperationName 'GET' operation 'AnalyzeText_JobStatus' should use method name 'Get' or Method name start with 'List'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L167
    ⚠️ OperationId OperationId for get method should contain 'Get' or 'list'
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L167
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L173
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L189
    ⚠️ SchemaTypeAndFormat Schema with type: integer should specify format
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L189
    ⚠️ SchemaTypeAndFormat Schema with type: integer should specify format
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L189
    ⚠️ SchemaTypeAndFormat Schema with type: integer should specify format
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L189
    ⚠️ SchemaTypeAndFormat Schema with type: integer should specify format
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L189
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L193
    ⚠️ AdditionalPropertiesAndProperties Don't specify additionalProperties as a sibling of properties.
    Location: cognitiveservices/data-plane/Language/analyzetext.json#L195
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️⚠️~[Staging] ServiceAPIReadinessTest: 0 Warnings warning [Detail]

    API Test is not triggered due to precheck failure. Check pipeline log for details.

    ️️✔️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.
    ️️✔️PoliCheck succeeded [Detail] [Expand]
    Validation passed for PoliCheck.
    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    ️️✔️TypeSpec Validation succeeded [Detail] [Expand]
    Validation passes for TypeSpec Validation.
    ️️✔️PR Summary succeeded [Detail] [Expand]
    Validation passes for Summary.
    Posted by Swagger Pipeline | How to fix these errors?

    @ghost ghost added the Cognitive Services label May 2, 2023
    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 2, 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-net-track2 warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from b53cd31. 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
      warn	No file changes detected after generation
      warn	Skip detect changed packages
    ️⚠️ azure-sdk-for-python warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from b53cd31. 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.
      warn		specification/cognitiveservices/data-plane/Language/readme.md skipped due to azure-sdk-for-python not found in swagger-to-sdk
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
      cmderr	[automation_generate.sh]
      cmderr	[automation_generate.sh] npm notice New minor version of npm available! 9.5.1 -> 9.6.6
      cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.6>
      cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@9.6.6` to update!
      cmderr	[automation_generate.sh] npm notice
      warn	No file changes detected after generation
      warn	No package detected after generation
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 2, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Swagger cognitiveservices-data-plane-Language https://apiview.dev/Assemblies/Review/c9a1fdd022cf4bdc85dd4fe912ce6524

    @ghost ghost added the Cognitive - Language label May 2, 2023
    @AzureRestAPISpecReview AzureRestAPISpecReview added BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required data-plane labels May 2, 2023
    @openapi-workflow-bot
    Copy link

    Hi @minhanh-phan, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review.
    Action: To initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
    If you want to know the production traffic statistic, please see ARM Traffic statistic.
    If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ms/swaggerfeedback.
    Note: To avoid breaking change, you can refer to Shift Left Solution for detecting breaking change in early phase at your service code repository.

    Copy link
    Contributor

    @kristapratico kristapratico left a comment

    Choose a reason for hiding this comment

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

    RequestStatistics is defined in analyzetext.json. Do we need to remove that definition and ref from common.json? Do we need to remove it from analyzetext.json and then use the ref from common.json?

    @joseharriaga
    Copy link
    Member

    RequestStatistics is defined in analyzetext.json. Do we need to remove that definition and ref from common.json?

    Would it be better to do it the other way around: Remove it from analyzetext.json and keep it in common.json?

    @kristapratico
    Copy link
    Contributor

    RequestStatistics is defined in analyzetext.json. Do we need to remove that definition and ref from common.json?

    Would it be better to do it the other way around: Remove it from analyzetext.json and keep it in common.json?

    Sorry bad wording, this is what I'm suggesting 😆

    @minhanh-phan
    Copy link
    Member Author

    @kristapratico Yes, I miss this. Pushed the change. Thank you for noticing that.

    @kristapratico
    Copy link
    Contributor

    @kristapratico Yes, I miss this. Pushed the change. Thank you for noticing that.

    Generates successfully for me, thank you!

    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.

    I believe this is okay, but checking with @tg-msft on one thing - the effective addition of additionalProperties: true.

    @heaths heaths added the Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 label May 3, 2023
    @heaths
    Copy link
    Member

    heaths commented May 3, 2023

    The breaking changes are expected and have not previous GA'd. This is effectively a correction.

    @minhanh-phan minhanh-phan marked this pull request as ready for review May 3, 2023 21:50
    @minhanh-phan minhanh-phan requested review from a team and annatisch as code owners May 3, 2023 21:50
    @minhanh-phan minhanh-phan requested review from markweitzel and mikekistler and removed request for a team May 3, 2023 21:50
    @heaths heaths merged commit b53cd31 into Azure:main May 4, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required Cognitive - Language Cognitive Services data-plane

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    7 participants

    Comments