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

[Cognitive Services - Azure AI Content Safety] GA Restful API #25498

Merged
merged 18 commits into from
Oct 17, 2023

Conversation

mengaims
Copy link
Contributor

@mengaims mengaims commented Aug 24, 2023

Data Plane API - Pull Request

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:

Viewing API changes

For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.

Suppressing failures

If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
Swagger-Suppression-Process
to get approval.

❔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

fix azure-sdk/TestingForEngagementExperience#298

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 24, 2023

Next Steps to Merge

✔️ All automated merging requirements have been met! Refer to step 4 in the PR workflow diagram (even if your PR is for data plane, not ARM).

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 24, 2023

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️⚠️Breaking Change(Cross-Version): 25 Warnings warning [Detail]
compared swaggers (via Oad v0.10.4)] new version base version
contentsafety.json 2023-10-01(7994379) 2023-04-30-preview(main)

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

Rule Message
⚠️ 1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/text/blocklists/{blocklistName}:addBlockItems' removed or restructured?
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L284:5
⚠️ 1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/text/blocklists/{blocklistName}:removeBlockItems' removed or restructured?
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L338:5
⚠️ 1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/text/blocklists/{blocklistName}/blockItems' removed or restructured?
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L389:5
⚠️ 1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/text/blocklists/{blocklistName}/blockItems/{blockItemId}' removed or restructured?
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L447:5
⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AddBlockItemsOptions' removed or renamed?
New: ContentSafety/stable/2023-10-01/contentsafety.json#L561:3
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L548:3
⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'RemoveBlockItemsOptions' removed or renamed?
New: ContentSafety/stable/2023-10-01/contentsafety.json#L561:3
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L548:3
⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) '2023-04-30-preview' from the old version.
New: ContentSafety/stable/2023-10-01/contentsafety.json#L1046:5
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L1018:5
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'hateResult' renamed or removed?
New: ContentSafety/stable/2023-10-01/contentsafety.json#L648:7
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L603:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'selfHarmResult' renamed or removed?
New: ContentSafety/stable/2023-10-01/contentsafety.json#L648:7
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L603:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'sexualResult' renamed or removed?
New: ContentSafety/stable/2023-10-01/contentsafety.json#L648:7
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L603:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'violenceResult' renamed or removed?
New: ContentSafety/stable/2023-10-01/contentsafety.json#L648:7
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L603:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'breakByBlocklists' renamed or removed?
New: ContentSafety/stable/2023-10-01/contentsafety.json#L665:7
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L625:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'blocklistsMatchResults' renamed or removed?
New: ContentSafety/stable/2023-10-01/contentsafety.json#L726:7
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L657:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'hateResult' renamed or removed?
New: ContentSafety/stable/2023-10-01/contentsafety.json#L726:7
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L657:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'selfHarmResult' renamed or removed?
New: ContentSafety/stable/2023-10-01/contentsafety.json#L726:7
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L657:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'sexualResult' renamed or removed?
New: ContentSafety/stable/2023-10-01/contentsafety.json#L726:7
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L657:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'violenceResult' renamed or removed?
New: ContentSafety/stable/2023-10-01/contentsafety.json#L726:7
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L657:7
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'categoriesAnalysis' that was not found in the old version.
New: ContentSafety/stable/2023-10-01/contentsafety.json#L648:7
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L603:7
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'categoriesAnalysis' that was not found in the old version.
New: ContentSafety/stable/2023-10-01/contentsafety.json#L84:13
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L71:13
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'categoriesAnalysis' that was not found in the old version.
New: ContentSafety/stable/2023-10-01/contentsafety.json#L726:7
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L657:7
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'categoriesAnalysis' that was not found in the old version.
New: ContentSafety/stable/2023-10-01/contentsafety.json#L536:13
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L523:13
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'categoriesAnalysis' that was not found in the old version.
New: ContentSafety/stable/2023-10-01/contentsafety.json#L645:5
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L600:5
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'categoriesAnalysis' that was not found in the old version.
New: ContentSafety/stable/2023-10-01/contentsafety.json#L723:5
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L654:5
⚠️ 1036 - ConstraintChanged The new version has a different 'maxLength' value than the previous one.
New: ContentSafety/stable/2023-10-01/contentsafety.json#L666:9
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L626:9
⚠️ 1037 - ConstraintIsWeaker The new version has a less constraining 'maxLength' value than the previous one.
New: ContentSafety/stable/2023-10-01/contentsafety.json#L666:9
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L626:9
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️❌LintDiff: 2 Errors, 8 Warnings failed [Detail]
compared tags (via openapi-validator v2.1.6) new version base version
package-2023-10-01 package-2023-10-01(7994379) default(main)

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

Rule Message Related RPC [For API reviewers]
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'TextBlocklists' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L404
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'TextBlocklists' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L462
⚠️ SecurityDefinitionDescription Security definition should have a description.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L51
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L63
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L298
⚠️ ParameterDescription Parameter should have a description.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L315
⚠️ ParameterDescription Parameter should have a description.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L369
⚠️ PathParameterSchema Path parameter should specify characters allowed (pattern).
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L478
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L515
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L685


The following errors/warnings exist before current PR submission:

Rule Message
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'TextBlocklists' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L110
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'TextBlocklists' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L150
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'TextBlocklists' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L194
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'TextBlocklists' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L256
⚠️ SecurityDefinitionDescription Security definition should have a description.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L46
⚠️ PatchInOperationName 'PATCH' operation 'TextBlocklists_CreateOrUpdateTextBlocklist' should use method name 'Update'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L194
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L748
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L782
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L795
⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L1046
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️❌ModelValidation: 2 Errors, 0 Warnings failed [Detail]
Rule Message
OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: blocklistItemId
Url: ContentSafety/stable/2023-10-01/contentsafety.json#L962:26
ExampleUrl: stable/2023-10-01/examples/AddOrUpdateBlocklistItems.json#L7:13
OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: blocklistItemId
Url: ContentSafety/stable/2023-10-01/contentsafety.json#L962:26
ExampleUrl: stable/2023-10-01/examples/AddOrUpdateBlocklistItems.json#L7:13
️️✔️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).
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 24, 2023

Swagger Generation Artifacts

️🔄ApiDocPreview inProgress [Detail]
️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

Breaking Changes Tracking


️⌛ azure-sdk-for-python-track2 pending [Detail]
️⌛ azure-sdk-for-net-track2 pending [Detail]
️⌛ azure-sdk-for-java pending [Detail]
️⌛ azure-sdk-for-js pending [Detail]
️⌛ azure-resource-manager-schemas pending [Detail]
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 24, 2023

Generated ApiView

Language Package Name ApiView Link
Python azure-ai-contentsafety https://apiview.dev/Assemblies/Review/aa3067b907994391975ff98029361fd0
Java azure-ai-contentsafety https://apiview.dev/Assemblies/Review/17dc3801d32b40bbbe6ea591fe7c9cdf
.Net Azure.AI.ContentSafety https://apiview.dev/Assemblies/Review/72a4e31b286840f9ba4a65ac04cc576b

Copy link
Member

@mikekistler mikekistler left a comment

Choose a reason for hiding this comment

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

Looks good! 👍

@weidongxu-microsoft
Copy link
Member

Please fix ModelValidation CI. It all about example JSON.

The 2 in LintDiff about operationId can be suppressed.

@weidongxu-microsoft
Copy link
Member

Please fix ModelValidation CI. It all about example JSON.

The 2 in LintDiff about operationId can be suppressed.

OK, I see, the ModelValidation probably another issue of mismatch of TSP and Swagger. blocklistItemId is "read-only" + "required", which is not allowed in Swagger.

In this case, I am wondering whether we should remove blocklistItemId from example request body, as user should not have it in body. It may cause other error, but we should be able to ignore that.

@mengaims
Copy link
Contributor Author

mengaims commented Aug 30, 2023

Please fix ModelValidation CI. It all about example JSON.
The 2 in LintDiff about operationId can be suppressed.

OK, I see, the ModelValidation probably another issue of mismatch of TSP and Swagger. blocklistItemId is "read-only" + "required", which is not allowed in Swagger.

In this case, I am wondering whether we should remove blocklistItemId from example request body, as user should not have it in body. It may cause other error, but we should be able to ignore that.

I used to removed "blocklistItemId", but ModelValidation still report errors that required field missing. I think I can remove them, but can we ignore the required field missing error? In service implementation, even user set blocklistItemId in request, we will still ignore this field.

@openapi-pipeline-app
Copy link

Swagger Validation Report

️🔄BreakingChange inProgress [Detail]
️🔄Breaking Change(Cross-Version) inProgress [Detail]
️⌛CredScan pending [Detail]
️🔄LintDiff inProgress [Detail]
️⌛Avocado pending [Detail]
️🔄SwaggerAPIView inProgress [Detail]
️🔄TypeSpecAPIView inProgress [Detail]
️❌ModelValidation: 2 Errors, 0 Warnings failed [Detail]
Rule Message
OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: blocklistItemId
Url: ContentSafety/stable/2023-10-01/contentsafety.json#L962:26
ExampleUrl: stable/2023-10-01/examples/AddOrUpdateBlocklistItems.json#L7:13
OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: blocklistItemId
Url: ContentSafety/stable/2023-10-01/contentsafety.json#L962:26
ExampleUrl: stable/2023-10-01/examples/AddOrUpdateBlocklistItems.json#L7:13
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️⌛PoliCheck pending [Detail]
️️✔️PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️🔄SpellCheck inProgress [Detail]
️🔄Lint(RPaaS) inProgress [Detail]
️⌛PR Summary pending [Detail]
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Oct 16, 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-track2 warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 3bae4e5. 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: azure-devtools 1.2.1 does not provide the extra 'ci-tools'
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: azure-devtools 1.2.1 does not provide the extra 'ci-tools'
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
    warn		specification/cognitiveservices/ContentSafety/tspconfig.yaml skipped due to azure-sdk-for-python-track2 not found in tspconfig.yaml
    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 major version of npm available! 9.8.1 -> 10.2.0
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.0>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@10.2.0` to update!
    cmderr	[automation_generate.sh] npm notice
    warn	No file changes detected after generation
    warn	No package detected after generation
️❌ azure-sdk-for-net-track2 failed [Detail]
  • Failed [Logs]Release - Generate from 3bae4e5. 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;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:131
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 131 | �[0m               �[36;1mGeneratePackage `�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to build sdk. exit code: False
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
  • Azure.AI.ContentSafety [View full logs]  [Release SDK Changes]
    info	[Changelog]
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 3bae4e5. SDK Automation 14.0.0
    command	./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    warn	No file changes detected after generation
    warn	No package detected after generation
  • ️✔️azure-ai-contentsafety [View full logs]  [Release SDK Changes]
️⚠️ azure-sdk-for-js warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 3bae4e5. SDK Automation 14.0.0
    command	sh .scripts/automation_init.sh ../azure-sdk-for-js_tmp/initInput.json ../azure-sdk-for-js_tmp/initOutput.json
    warn	File azure-sdk-for-js_tmp/initOutput.json not found to read
    command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
    warn	No file changes detected after generation
    warn	No package detected after generation
  • ️✔️@azure-rest/ai-content-safety [View full logs]  [Release SDK Changes]
    info	[Changelog]
    error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
️⚠️ azure-resource-manager-schemas warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 3bae4e5. Schema Automation 14.0.0
    command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
    cmderr	[initScript.sh] npm notice
    cmderr	[initScript.sh] npm notice New major version of npm available! 8.19.4 -> 10.2.0
    cmderr	[initScript.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.0>
    cmderr	[initScript.sh] npm notice Run `npm install -g npm@10.2.0` to update!
    cmderr	[initScript.sh] npm notice
    warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
    command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
    warn	No file changes detected after generation
    warn	Skip detect changed packages
️❌ azure-powershell failed [Detail]
  • Pipeline Framework Failed [Logs]Release - Generate from 3bae4e5. SDK Automation 14.0.0
    command	sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json
    warn		specification/cognitiveservices/ContentSafety/tspconfig.yaml skipped due to azure-powershell not found in tspconfig.yaml
    command	pwsh ./tools/SwaggerCI/psci.ps1 ../azure-powershell_tmp/generateInput.json ../azure-powershell_tmp/generateOutput.json
    SSL error: syscall failure: Broken pipe
    Error: SSL error: syscall failure: Broken pipe
  • ⚠️Az.cognitiveservices.DefaultTag [View full logs
    error	Fatal error: SSL error: syscall failure: Broken pipe
    error	The following packages are still pending:
    error		Az.cognitiveservices.DefaultTag
️⚠️ azure-sdk-for-python warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 3bae4e5. 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: azure-devtools 1.2.1 does not provide the extra 'ci-tools'
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: azure-devtools 1.2.1 does not provide the extra 'ci-tools'
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: There was an error checking the latest version of pip.
    cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
    warn		specification/cognitiveservices/data-plane/ContentSafety/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] npm notice
    cmderr	[automation_generate.sh] npm notice New major version of npm available! 9.8.1 -> 10.2.0
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.0>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@10.2.0` to update!
    cmderr	[automation_generate.sh] npm notice
  • ️✔️azure-ai-contentsafety [View full logs]  [Release SDK Changes]
    info	[Changelog] data-plan skip changelog generation temporarily
Posted by Swagger Pipeline | How to fix these errors?

@weidongxu-microsoft
Copy link
Member

weidongxu-microsoft commented Oct 17, 2023

I will suppress the LintDiff, as it is about name of operationId; the ModelValidation, as it is a false alert on both "required" and "readonly" property (that not valid in Swagger).

@weidongxu-microsoft weidongxu-microsoft added Approved-LintDiff Approved-ModelValidation APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. labels Oct 17, 2023
@mengaims mengaims merged commit 3bae4e5 into Azure:main Oct 17, 2023
29 of 31 checks passed
@openapi-pipeline-app
Copy link

Swagger pipeline restarted successfully, please wait for status update in this comment.

jnlycklama pushed a commit that referenced this pull request Nov 8, 2023
* Add ga contract for Content Safety

* Update examples for 2023-10-01

* Resolve ModelValidation SpellCheck and Avocado

* Fix typo

* Fix minor errors in example and readme

* Fix example

* remove the 0430 content

* update readme

* re-format markdowm

* Fix example

* update blocklist example

* Add eight severity levels
zman-ms pushed a commit that referenced this pull request Jan 10, 2024
* Add ga contract for Content Safety

* Update examples for 2023-10-01

* Resolve ModelValidation SpellCheck and Avocado

* Fix typo

* Fix minor errors in example and readme

* Fix example

* remove the 0430 content

* update readme

* re-format markdowm

* Fix example

* update blocklist example

* Add eight severity levels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. Approved-LintDiff Approved-ModelValidation data-plane
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Azure AI Studio - Azure AI Studio] API Review
5 participants