azure-rest-api-specs icon indicating copy to clipboard operation
azure-rest-api-specs copied to clipboard

Update documentation for UnifiedVision 2023-04-01-preview

Open MinjingZhu opened this issue 1 year ago • 6 comments

Data Plane API - Pull Request

Update documentation for UnifiedVision 2023-04-01-preview

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.

MinjingZhu avatar Apr 23 '24 23:04 MinjingZhu

Next Steps to Merge

✅ All automated merging requirements have been met! To get your PR merged, see aka.ms/azsdk/specreview/merge.

Swagger Validation Report

️❌BreakingChange: 14 Errors, 0 Warnings failed [Detail]
Compared specs (v0.10.8) new version base version
UnifiedVision.json 2023-04-01-preview(a0129ea) 2023-04-01-preview(main)
Rule Message
1008 - ModifiedOperationId The operation id has been changed from 'ImageAnalysis_Segment' to 'ImageAnalysis_SegmentImage'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L10:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L10:7
1008 - ModifiedOperationId The operation id has been changed from 'ImageComposition_Stitch' to 'ImageComposition_StitchImages'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L189:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L198:7
1008 - ModifiedOperationId The operation id has been changed from 'ImageComposition_Rectify' to 'ImageComposition_RectifyImage'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L240:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L252:7
1008 - ModifiedOperationId The operation id has been changed from 'ProductRecognition_Create' to 'ProductRecognition_CreateRun'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L340:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L358:7
1008 - ModifiedOperationId The operation id has been changed from 'ProductRecognition_Get' to 'ProductRecognition_GetRun'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L394:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L415:7
1008 - ModifiedOperationId The operation id has been changed from 'ProductRecognition_Delete' to 'ProductRecognition_DeleteRun'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L448:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L472:7
1008 - ModifiedOperationId The operation id has been changed from 'ProductRecognition_List' to 'ProductRecognition_ListRuns'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L501:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L528:7
1008 - ModifiedOperationId The operation id has been changed from 'ImageAnalysis_Analyze' to 'ImageAnalysis_AnalyzeImage'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L571:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L601:7
1008 - ModifiedOperationId The operation id has been changed from 'Datasets_Register' to 'Datasets_Create'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L670:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L703:7
1008 - ModifiedOperationId The operation id has been changed from 'Datasets_Unregister' to 'Datasets_Delete'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L835:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L877:7
1008 - ModifiedOperationId The operation id has been changed from 'Models_CancelTraining' to 'Models_Cancel'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L1153:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L1213:7
1008 - ModifiedOperationId The operation id has been changed from 'ImageAnalysis_SegmentFromImageStream' to 'ImageAnalysis_SegmentStream'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L2980:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L3055:7
1008 - ModifiedOperationId The operation id has been changed from 'ImageRetrieval_VectorizeImageFromImageStream' to 'ImageRetrieval_VectorizeStream'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L3054:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L3132:7
1008 - ModifiedOperationId The operation id has been changed from 'ImageAnalysis_AnalyzeFromImageStream' to 'ImageAnalysis_AnalyzeStream'. This will impact generated code.
New: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L3116:7
Old: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L3197:7
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 0 Warnings warning [Detail]
Compared specs (v2.2.2) new version base version
2023-04-01-preview 2023-04-01-preview(a0129ea) 2023-04-01-preview(main)

The following errors/warnings exist before current PR submission:

Rule Message
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L1153
:warning: PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L78
:warning: ParameterNamesConvention Parameter name 'model-version' should be camel case.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L90
:warning: RequestBodyOptional The body parameter is not marked as required.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L97
:warning: PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L133
:warning: ParameterNamesConvention Parameter name 'model-version' should be camel case.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L145
:warning: PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L291
:warning: RequestBodyOptional The body parameter is not marked as required.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L304
:warning: ParameterNamesConvention Parameter name 'model-name' should be camel case.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L606
:warning: ParameterNamesConvention Parameter name 'smartcrops-aspect-ratios' should be camel case.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L619
:warning: 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: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L623
:warning: ParameterNamesConvention Parameter name 'gender-neutral-caption' should be camel case.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L625
:warning: PatchContentType A patch operation should consume 'application/merge-patch+json' content type.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L775
:warning: LroHeaders A 202 response should include an Operation-Location response header.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L1174
:warning: 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: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L1449
:warning: 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: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L1827
:warning: SchemaDescriptionOrTitle Schema should have a description or title.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L2362
:warning: MsPaths Don't use x-ms-paths except where necessary to support legacy APIs.
Location: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L2978
:warning: 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: UnifiedVision/preview/2023-04-01-preview/UnifiedVision.json#L3173
️️✔️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?

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
Posted by Swagger Pipeline | How to fix these errors?

Keeping the original grouping of operations: image

MinjingZhu avatar Apr 24 '24 00:04 MinjingZhu

PR validation pipeline can not start as the pull request is not merged or mergeable - most likely it has merge conflicts.

PR validation pipeline can not start as the pull request is not merged or mergeable - most likely it has merge conflicts.

Hi @mikekistler , could you please approve breaking changes for this PR as well? I updated the operation names to align with other APIs.

MinjingZhu avatar Apr 29 '24 22:04 MinjingZhu

/pr RequestMerge

MinjingZhu avatar May 01 '24 18:05 MinjingZhu