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] - 2023-10-15-preview Public Preview #25570

Merged
merged 77 commits into from
Dec 8, 2023

Conversation

suxi-ms
Copy link
Contributor

@suxi-ms suxi-ms commented Aug 29, 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

@suxi-ms suxi-ms requested a review from yangyuan as a code owner August 29, 2023 06:17
@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 29, 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 29, 2023

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
compared swaggers (via Oad v0.10.4)] new version base version
contentsafety.json 2023-10-01(ec6e686) 2023-10-01(main)
️⚠️Breaking Change(Cross-Version): 24 Warnings warning [Detail]
compared swaggers (via Oad v0.10.4)] new version base version
contentsafety.json 2023-10-15-preview(ec6e686) 2023-10-01(main)
contentsafety.json 2023-10-15-preview(ec6e686) 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/preview/2023-10-15-preview/contentsafety.json#L655: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/preview/2023-10-15-preview/contentsafety.json#L655:3
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L548:3
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'hateResult' renamed or removed?
New: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L736: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/preview/2023-10-15-preview/contentsafety.json#L736: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/preview/2023-10-15-preview/contentsafety.json#L736: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/preview/2023-10-15-preview/contentsafety.json#L736: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/preview/2023-10-15-preview/contentsafety.json#L780: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/preview/2023-10-15-preview/contentsafety.json#L868: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/preview/2023-10-15-preview/contentsafety.json#L868: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/preview/2023-10-15-preview/contentsafety.json#L868: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/preview/2023-10-15-preview/contentsafety.json#L868: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/preview/2023-10-15-preview/contentsafety.json#L868: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/preview/2023-10-15-preview/contentsafety.json#L736: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/preview/2023-10-15-preview/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/preview/2023-10-15-preview/contentsafety.json#L868: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/preview/2023-10-15-preview/contentsafety.json#L538: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/preview/2023-10-15-preview/contentsafety.json#L733: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/preview/2023-10-15-preview/contentsafety.json#L865: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/preview/2023-10-15-preview/contentsafety.json#L781: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/preview/2023-10-15-preview/contentsafety.json#L781:9
Old: ContentSafety/preview/2023-04-30-preview/contentsafety.json#L626:9
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 2 Warnings warning [Detail]
compared tags (via openapi-validator v2.1.6) new version base version
package-2023-10-01 package-2023-10-01(ec6e686) package-2023-10-01(main)
package-2023-10-15-preview package-2023-10-15-preview(ec6e686) default(main)

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

Rule Message Related RPC [For API reviewers]
⚠️ 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/preview/2023-10-15-preview/contentsafety.json#L1003
⚠️ 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/preview/2023-10-15-preview/contentsafety.json#L1060


The following errors/warnings exist before current PR submission:

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

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/preview/2023-10-15-preview/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/preview/2023-10-15-preview/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/preview/2023-10-15-preview/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/preview/2023-10-15-preview/contentsafety.json#L256
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/preview/2023-10-15-preview/contentsafety.json#L406
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/preview/2023-10-15-preview/contentsafety.json#L464
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
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#L406
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#L464
⚠️ SecurityDefinitionDescription Security definition should have a description.
Location: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L46
⚠️ SecurityDefinitionDescription Security definition should have a description.
Location: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L51
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L63
⚠️ 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/preview/2023-10-15-preview/contentsafety.json#L194
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L298
⚠️ PathParameterSchema Path parameter should specify characters allowed (pattern).
Location: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L480
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L517
⚠️ 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/preview/2023-10-15-preview/contentsafety.json#L800
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L890
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L924
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L937
⚠️ SecurityDefinitionDescription Security definition should have a description.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L46
⚠️ 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
⚠️ 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
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L298
⚠️ PathParameterSchema Path parameter should specify characters allowed (pattern).
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L480
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: ContentSafety/stable/2023-10-01/contentsafety.json#L517
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView 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.
️️✔️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 29, 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] Generate from f6df1620ee317ac5f4067a4255131b6384657baf. 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: azure-devtools 1.2.1 does not provide the extra 'ci-tools'
    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.5
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.5>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@10.2.5` 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 succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs] Generate from f6df1620ee317ac5f4067a4255131b6384657baf. 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
  • ️✔️Azure.AI.ContentSafety [View full logs]  [Preview SDK Changes]
    info	[Changelog]
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning [Logs] Generate from f6df1620ee317ac5f4067a4255131b6384657baf. 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.1
    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.1
    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]  [Preview SDK Changes]
️⚠️ azure-sdk-for-js warning [Detail]
  • ⚠️Warning [Logs] Generate from f6df1620ee317ac5f4067a4255131b6384657baf. 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]  [Preview 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] Generate from f6df1620ee317ac5f4067a4255131b6384657baf. 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.5
    cmderr	[initScript.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.5>
    cmderr	[initScript.sh] npm notice Run `npm install -g npm@10.2.5` 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] Generate from f6df1620ee317ac5f4067a4255131b6384657baf. 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] Generate from f6df1620ee317ac5f4067a4255131b6384657baf. 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: azure-devtools 1.2.1 does not provide the extra 'ci-tools'
    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.5
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.5>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@10.2.5` to update!
    cmderr	[automation_generate.sh] npm notice
  • ️✔️azure-ai-contentsafety [View full logs]  [Preview SDK Changes]
    info	[Changelog] data-plan skip changelog generation temporarily
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 29, 2023

@suxi-ms
Copy link
Contributor Author

suxi-ms commented Aug 29, 2023

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 for public preview. 👍

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.

A few nits on doc grammar; otherwise, LGTM.

specification/cognitiveservices/ContentSafety/models.tsp Outdated Show resolved Hide resolved
specification/cognitiveservices/ContentSafety/models.tsp Outdated Show resolved Hide resolved
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.

This looks good but let's hold off merging until #25498 merges.

@mengaims
Copy link
Contributor

mengaims commented Nov 21, 2023

There's been a lot of changes on this, but not all resolved comments seem to be updated in the swagger. Should we expect them to? What is the status on this PR currently? Let @mikekistler and I know so we can (re)do a proper review.

Hi @heaths, sorry for the confusion, this PR has been changed a lot since it's open, because there are much releasing plan adjustment from our side. We will avoid this by abandon old PR and creating a new version number and PR if there is big feature release scope change in the future.
For the unresolved comments, I closed the old ones because the Project feature has been abandoned in this version, and for comments since our last review(10/26), I've replied and resolved.

We may still hold this PR for one or two weeks to wait our SDK GA code complete, I will ask for your approval when it's ready to merge. Thanks!

@heaths
Copy link
Member

heaths commented Nov 29, 2023

Can you convert it to a draft PR then, please? That helps a lot when triaging reviews.

@AzureRestAPISpecReview AzureRestAPISpecReview added the TypeSpec Authored with TypeSpec label Dec 6, 2023
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.

Please add

omit-unreachable-types: true

to the options for typespec-autorest in your tspconfig.yaml.

This will let you avoid the "AddedEnumValue" Swagger breaking change going forward.

@mengaims mengaims enabled auto-merge (squash) December 7, 2023 12:15
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

Another SDK comment is that the new operation should be added to client.tsp https://github.com/Azure/azure-rest-api-specs/blob/13a27780750b3130bf7aab374b523093c4560a6a/specification/cognitiveservices/ContentSafety/client.tsp
Else it won't appear at all (e.g. the current automated PR https://github.com/azure-sdk/azure-sdk-for-java/pull/6727/files).

@mengaims
Copy link
Contributor

mengaims commented Dec 8, 2023

Another SDK comment is that the new operation should be added to client.tsp https://github.com/Azure/azure-rest-api-specs/blob/13a27780750b3130bf7aab374b523093c4560a6a/specification/cognitiveservices/ContentSafety/client.tsp Else it won't appear at all (e.g. the current automated PR https://github.com/azure-sdk/azure-sdk-for-java/pull/6727/files).

Thanks for reminding, added the two new APIs to client.tsp

@heaths heaths merged commit a182fc1 into Azure:main Dec 8, 2023
29 of 30 checks passed
arifibrahim4 pushed a commit that referenced this pull request Feb 26, 2024
…ublic Preview (#25570)

* 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

* init content safety 2023-10-15-preview

* init content safety 2023-10-15-previwe

* update

* format example

* update read me file

* update

* update

* update contract

* update

* update

* update threshold

* update new contract by add judgement kind enum

* update description

* u

* update

* updat length

* update

* update

* update description for accept severity threshodl

* update

* merge with acs-ga

* Add snippy contract

* remove 8 sev levels for image

* update contentsafety.json

* Update snippy path

* add type spec for jailbreak

* compiled

* update

* update

* refine

* update

* make 0,1,2,3,4,5,6,7 to 0, 1, 2, 3, ... and add comman in last enum value

* update path

* Update NL Snippy path

* Resolve conflict

* Update protected material API

* update project sample

* Change path name

* Update protect material contract

* update jailbreak

* Remove project related contract (#20)

* Remove project related things

* Remove accepted

* Remove examples

* Merge main and recompile swagger

* remove new version enum from GA version

* Remove examples from 1015

* restore examples

* Add examples for jailbreak and protected material

* run prettier for example

* commit add enum to stable

* Add omit-unreachable-types: true to typespec

* compile preview

* Fix readme

* remove blocklistItemId from AddOrUpdateBlocklistItems example

* Resolve sdk issues

* Fix typo

---------

Co-authored-by: mengaims <mengai@microsoft.com>
Co-authored-by: Lixiang Liu <lixiangliu@microsoft.com>
Co-authored-by: Lixiang Liu <liulixiang1988@gmail.com>
Co-authored-by: zhaiyutong <mo.huainian@163.com>
Co-authored-by: mengaims <50131889+mengaims@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-plane TypeSpec Authored with TypeSpec
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants