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] - [Private Preview] - Add Image Batch Detection #27353

Merged

Conversation

mengaims
Copy link
Contributor

@mengaims mengaims commented Jan 11, 2024

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

Checks stuck in `queued` state? If the PR CI checks appear to be stuck in `queued` state, please add a comment with contents `/azp run`. This should result in a new comment denoting a `PR validation pipeline` has started and the checks should be updated after few minutes.

mengaims and others added 5 commits January 11, 2024 15:49
* 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

* Add incident response API in 2023-10-30-preview

* compiled

* Adaptive annotation service contract

* Remove operations

* 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

* add

* add

* remove labelName

* Fix route and minor errors

* Change typo

* update

* Update protected material API

* update project sample

* Change path name

* Update protect material contract

* update jailbreak

* Update incident contract

* Update contract

* Update

* scenarios to enumerations (#19)

* Remove project related contract (#20)

* Remove project related things

* Remove accepted

* Remove examples

* Merge 1015 (#22)

* 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

---------

Co-authored-by: FAREAST\suxi <suxi@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>

* Add list API for Annotation Service (#23)

* 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

* Add list category APIs

---------

Co-authored-by: FAREAST\suxi <suxi@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>

* Update contract for incident response (#24)

Co-authored-by: Lixiang Liu <lixiangliu@microsoft.com>

* scenarios to enumerations (#25)

* [Cognitive Services - Azure AI Content Safety] - 2023-11-30-preview Private Preview

* update doc

* resolve comments.

* Merge main and recompile swagger

* add explanation for 2023-11-30-preview

* format

* generate swagger

* Optimize contract (#36)

* add 12-30-preview, add explanation spec

* update

* renamed reason -> harmful chunks

* update.

* 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

* renamed to citation

* UPDATE: add reasoning column and update some docs.

* update doc.

* update api version.

* Fix some typo issues. (#40)

* Update data plane.

* Remove unused versions

---------

Co-authored-by: FAREAST\suxi <suxi@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: YUTONG_ZHAI <32332316+zhaiyutong@users.noreply.github.com>
Co-authored-by: Jie Zhou <zhojie@microsoft.com>
Co-authored-by: Yuxiao Wang <yuxiaowang@microsoft.com>
Co-authored-by: Yuxiao Wang <58904990+Sayaka-4987@users.noreply.github.com>
Co-authored-by: jiezhou_microsoft <94604058+JieZhou000@users.noreply.github.com>
* 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

* Add incident response API in 2023-10-30-preview

* compiled

* Adaptive annotation service contract

* Remove operations

* 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

* add

* add

* remove labelName

* Fix route and minor errors

* Change typo

* update

* Update protected material API

* update project sample

* Change path name

* Update protect material contract

* update jailbreak

* Update incident contract

* Update contract

* Update

* scenarios to enumerations (#19)

* Remove project related contract (#20)

* Remove project related things

* Remove accepted

* Remove examples

* Merge 1015 (#22)

* 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

---------

Co-authored-by: FAREAST\suxi <suxi@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>

* Add list API for Annotation Service (#23)

* 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

* Add list category APIs

---------

Co-authored-by: FAREAST\suxi <suxi@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>

* Update contract for incident response (#24)

Co-authored-by: Lixiang Liu <lixiangliu@microsoft.com>

* scenarios to enumerations (#25)

* [Cognitive Services - Azure AI Content Safety] - 2023-11-30-preview Private Preview

* update doc

* resolve comments.

* Merge main and recompile swagger

* add explanation for 2023-11-30-preview

* format

* generate swagger

* Optimize contract (#36)

* add 12-30-preview, add explanation spec

* update

* renamed reason -> harmful chunks

* update.

* 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

* renamed to citation

* UPDATE: add reasoning column and update some docs.

* update doc.

* update api version.

* Fix some typo issues. (#40)

* Update data plane.

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* update bd draft

* update spec draft

* update spec draft

* update spec draft

---------

Co-authored-by: mengaims <mengai@microsoft.com>
Co-authored-by: FAREAST\suxi <suxi@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>
Co-authored-by: YUTONG_ZHAI <32332316+zhaiyutong@users.noreply.github.com>
Co-authored-by: Jie Zhou <zhojie@microsoft.com>
Co-authored-by: Yuxiao Wang <yuxiaowang@microsoft.com>
Co-authored-by: Yuxiao Wang <58904990+Sayaka-4987@users.noreply.github.com>
Co-authored-by: jiezhou_microsoft <94604058+JieZhou000@users.noreply.github.com>
Co-authored-by: David Liang <liangze@microsoft.com>
* Add async batch image APIs in 2024-01-30-preview

* Update

* Update

* Add error message in GET resonse
Copy link

openapi-pipeline-app bot commented Jan 11, 2024

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).

Copy link

openapi-pipeline-app bot commented Jan 11, 2024

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️❌Breaking Change(Cross-Version): 2 Errors, 6 Warnings failed [Detail]
compared swaggers (via Oad v0.10.4)] new version base version
contentsafety.json 2023-10-30-preview(e54dd6e) 2023-10-01(main)
contentsafety.json 2023-10-30-preview(e54dd6e) 2023-10-15-preview(main)

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

Rule Message
1027 - DefaultValueChanged The new version has a different default value than the previous one.
New: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L1937:9
Old: ContentSafety/stable/2023-10-01/contentsafety.json#L613:9
1027 - DefaultValueChanged The new version has a different default value than the previous one.
New: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L2095:9
Old: ContentSafety/stable/2023-10-01/contentsafety.json#L681:9
⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
New: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L1937:9
Old: ContentSafety/stable/2023-10-01/contentsafety.json#L613:9
⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
New: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L2095:9
Old: ContentSafety/stable/2023-10-01/contentsafety.json#L681:9


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

Rule Message
⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
New: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L1937:9
Old: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L705:9
⚠️ 1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
New: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L2095:9
Old: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L800:9
⚠️ 1027 - DefaultValueChanged The new version has a different default value than the previous one.
New: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L1937:9
Old: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L705:9
⚠️ 1027 - DefaultValueChanged The new version has a different default value than the previous one.
New: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L2095:9
Old: ContentSafety/preview/2023-10-15-preview/contentsafety.json#L800:9
️️✔️LintDiff succeeded [Detail] [Expand]
Validation passes for LintDiff.
️❌Avocado: 1 Errors, 0 Warnings failed [Detail]
Rule Message
NOT_LATEST_API_VERSION_IN_DEFAULT_TAG The default tag does not contains the latest API version. Please make sure the latest api version swaggers are in the default tag.
readme: cognitiveservices/data-plane/ContentSafety/readme.md
json: ContentSafety/preview/2023-10-30-preview/contentsafety.json
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️❌ModelValidation: 39 Errors, 0 Warnings failed [Detail]

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

Rule Message
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ImageBatchOperations_ListBatchTasks.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L63:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ImageBatchOperations_GetBatchTaskStatus.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L107:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ImageBatchOperations_BatchAnalyzeImage.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L145:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ImageIncidents_ListIncidents.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L193:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ImageIncidents_GetIncidents.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L237:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ImageIncidents_CreateOrUpdateIncident.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L276:16
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ImageIncidents_DeleteIncident.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L333:17
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ImageIncidents_AddIncidentSamples.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L371:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ImageIncidents_RemoveIncidentSamples.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L420:15
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ImageIncidents_ListIncidentSamples.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L466:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ImageIncidents_GetIncidentSample.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L519:14
INVALID_REQUEST_PARAMETER api-version 2023-12-30-preview is not equal to swagger version
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L568:15
ExampleUrl: preview/2023-10-30-preview/examples/AnalyzeImage.json#L4:17
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in ImageWithTextOperations_AnalyzeImageWithText.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L614:15
INVALID_REQUEST_PARAMETER api-version 2023-12-30-preview is not equal to swagger version
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L655:14
ExampleUrl: preview/2023-10-30-preview/examples/ListTextBlocklists.json#L4:17
INVALID_REQUEST_PARAMETER api-version 2023-12-30-preview is not equal to swagger version
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L695:14
ExampleUrl: preview/2023-10-30-preview/examples/GetTextBlocklist.json#L4:17
INVALID_REQUEST_PARAMETER api-version 2023-12-30-preview is not equal to swagger version
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L739:16
ExampleUrl: preview/2023-10-30-preview/examples/CreateOrUpdateTextBlocklist.json#L4:17
INVALID_REQUEST_PARAMETER api-version 2023-12-30-preview is not equal to swagger version
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L801:17
ExampleUrl: preview/2023-10-30-preview/examples/DeleteTextBlocklist.json#L4:17
INVALID_REQUEST_PARAMETER api-version 2023-12-30-preview is not equal to swagger version
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L844:15
ExampleUrl: preview/2023-10-30-preview/examples/AddOrUpdateBlocklistItems.json#L4:17
INVALID_TYPE Expected type string but found type null
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L3213:28
ExampleUrl: preview/2023-10-30-preview/examples/AddOrUpdateBlocklistItems.json#L7:13
INVALID_REQUEST_PARAMETER api-version 2023-12-30-preview is not equal to swagger version
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L899:15
ExampleUrl: preview/2023-10-30-preview/examples/RemoveBlocklistItems.json#L4:17
INVALID_REQUEST_PARAMETER api-version 2023-12-30-preview is not equal to swagger version
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L951:14
ExampleUrl: preview/2023-10-30-preview/examples/ListTextBlocklistItems.json#L4:17
INVALID_REQUEST_PARAMETER api-version 2023-12-30-preview is not equal to swagger version
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L1009:14
ExampleUrl: preview/2023-10-30-preview/examples/GetTextBlocklistItem.json#L4:17
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in TextCategoryCustomization_ListTextCustomizedCategory.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L1063:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in TextCategoryCustomization_GetTextCustomizedCategory.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L1106:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in TextCategoryCustomization_CreateOrReplaceTextCustomizedCategory.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L1144:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in TextCategoryCustomization_DeleteTextCustomizedCategory.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L1197:17
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in TextIncidents_ListIncidents.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L1234:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in TextIncidents_GetIncidents.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L1278:14
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in TextIncidents_CreateOrUpdateIncident.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L1317:16
XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in TextIncidents_DeleteIncident.
Url: ContentSafety/preview/2023-10-30-preview/contentsafety.json#L1374:17
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️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?

Copy link

openapi-pipeline-app bot commented Jan 11, 2024

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 983ef3efcf3bf10eb4867009ee160eec742c2459. 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]  New minor version of npm available! 10.2.3 -> 10.4.0
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.4.0>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@10.4.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 succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs] Generate from 983ef3efcf3bf10eb4867009ee160eec742c2459. 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] Breaking Change Detected
    info	[Changelog] Breaking Changes: /home/cloudtest/.nuget/packages/microsoft.dotnet.apicompat/5.0.0-beta.20467.1/build/Microsoft.DotNet.ApiCompat.targets(96,5): error : ApiCompat failed for '/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/bin/Azure.AI.ContentSafety/Debug/netstandard2.0/Azure.AI.ContentSafety.dll' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/contentsafety/Azure.AI.ContentSafety/src/Azure.AI.ContentSafety.csproj::TargetFramework=netstandard2.0]
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning [Logs] Generate from 983ef3efcf3bf10eb4867009ee160eec742c2459. 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 -> 24.0
    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 -> 24.0
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    cmderr	[init.sh] nt
    cmderr	[init.sh]                                  Dload  Upload   Total   Spent    Left  Speed
    cmderr	[init.sh] 
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     00 --:--:-- --:--:-- --:--:-- 1110k
    cmderr	[init.sh]  notice
    cmderr	[init.sh] npm notice New minor version of npm available! 10.2.3 -> 10.4.0
    cmderr	[init.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.4.0>
    cmderr	[init.sh] npm notice Run `npm install -g npm@10.4.0` to update!
    cmderr	[init.sh] npm notice
    cmderr	[init.sh] Downloading https://nodejs.org/dist/v18.15.0/node-v18.15.0-linux-x64.tar.xz...
    cmderr	[init.sh] Computing checksum with sha256sum
    cmderr	[init.sh] Checksums matched!
    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 983ef3efcf3bf10eb4867009ee160eec742c2459. 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 983ef3efcf3bf10eb4867009ee160eec742c2459. 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]  notice
    cmderr	[initScript.sh] npm notice New minor version of npm available! 10.2.3 -> 10.4.0
    cmderr	[initScript.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.4.0>
    cmderr	[initScript.sh] npm notice Run `npm install -g npm@10.4.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 warning [Detail]
  • ⚠️Warning [Logs] Generate from 983ef3efcf3bf10eb4867009ee160eec742c2459. 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
  • ⚠️Az.cognitiveservices.DefaultTag [View full logs]  [Preview SDK Changes]
️⚠️ azure-sdk-for-python warning [Detail]
  • ⚠️Warning [Logs] Generate from 983ef3efcf3bf10eb4867009ee160eec742c2459. 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]
    cmderr	[automation_generate.sh]  New minor version of npm available! 10.2.3 -> 10.4.0
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.4.0>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@10.4.0` 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?

* Change annotation API

* Add prompt generation APIs
@mengaims mengaims closed this Jan 19, 2024
@mengaims mengaims deleted the acs-0130-private branch January 19, 2024 07:16
@mengaims mengaims restored the acs-0130-private branch January 19, 2024 07:17
@mengaims mengaims reopened this Jan 19, 2024
Sayaka-4987 and others added 2 commits January 19, 2024 16:45
* fix explanation version

* delete 0130 version
* Add async batch image APIs in 2024-01-30-preview

* Update

* Update

* Add error message in GET resonse

* Update async batch image APIs in 2023-10-30-preview
@mengaims mengaims changed the title [Cognitive Services - Azure AI Content Safety] - [Private Preview] - Add Image Batch Detection and Customization [Cognitive Services - Azure AI Content Safety] - [Private Preview] - Add Image Batch Detection Feb 5, 2024
lemonicetea and others added 3 commits February 5, 2024 20:47
* remove customized category

* remove useless definition
* remove customized category

* remove useless definition

* change progressPercentage to int32
@doc("The URL of the Azure Storage Blob where the batch task results will be written.")
analysisResultsBlobFolderUrl: url;
@doc("The blob parameters of result files.")
analysisResults: BatchAnalyzeImagesResults;
Copy link
Member

Choose a reason for hiding this comment

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

This is a very confusing name. Even I had to review this several times over again. You might consider not putting anything called "results" in a request model, or at least something like saveResultsLocation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed the name to "resultsBlob" as ChatGPT suggested. I did not use the word "location" because there is one "blobPrefixLocation" under this concept.

description: string;
}

@added(Versions.v2023_10_30_Preview)
@doc("Label definition.")
@renamedFrom(Versions.v2024_01_30_Preview, "SubCategory")
model Class {
model SubCategory {
Copy link
Member

Choose a reason for hiding this comment

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

Subcategory is a single word. This is not going to look good in a public-facing API.

Copy link
Member

Choose a reason for hiding this comment

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

You even use it as such below in docs. Be consistent. Use single word casing everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing out! Changed it to Subcategory

@renamedFrom(Versions.v2024_01_30_Preview, "subCategories")
classes: Class[];
@doc("Subcategories in the customized category.")
subCategories: SubCategory[];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
subCategories: SubCategory[];
subcategories: Subcategory[];

It's a single word.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

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.

You still have a lot of checks failing that need to be fixed.

@mengaims mengaims marked this pull request as ready for review February 12, 2024 08:23
@mengaims mengaims merged commit 0a5e52c into Azure:feature/azure-ai-content-safety Feb 12, 2024
25 of 28 checks passed
@mengaims
Copy link
Contributor Author

You still have a lot of checks failing that need to be fixed.

Will create a new PR to fix after our CNY holiday.

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.

6 participants