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

Update documentation for CustomVision Prediction 3.1

Open MinjingZhu opened this issue 1 year ago • 4 comments

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.

MinjingZhu avatar Apr 19 '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: 8 Errors, 0 Warnings failed [Detail]
Compared specs (v0.10.8) new version base version
Prediction.json v3.1(da64fe9) v3.1(main)
Rule Message
1008 - ModifiedOperationId The operation id has been changed from 'ClassifyImage' to 'ImageClassifier_ClassifyImage'. This will impact generated code.
New: Prediction/stable/v3.1/Prediction.json#L14:7
Old: Prediction/stable/v3.1/Prediction.json#L14:7
1008 - ModifiedOperationId The operation id has been changed from 'ClassifyImageWithNoStore' to 'ImageClassifier_ClassifyImageWithoutSaving'. This will impact generated code.
New: Prediction/stable/v3.1/Prediction.json#L81:7
Old: Prediction/stable/v3.1/Prediction.json#L84:7
1008 - ModifiedOperationId The operation id has been changed from 'ClassifyImageUrl' to 'ImageClassifier_ClassifyImageUrl'. This will impact generated code.
New: Prediction/stable/v3.1/Prediction.json#L148:7
Old: Prediction/stable/v3.1/Prediction.json#L154:7
1008 - ModifiedOperationId The operation id has been changed from 'ClassifyImageUrlWithNoStore' to 'ImageClassifier_ClassifyImageUrlWithoutSaving'. This will impact generated code.
New: Prediction/stable/v3.1/Prediction.json#L219:7
Old: Prediction/stable/v3.1/Prediction.json#L228:7
1008 - ModifiedOperationId The operation id has been changed from 'DetectImage' to 'ObjectDetector_AnalyzeImage'. This will impact generated code.
New: Prediction/stable/v3.1/Prediction.json#L290:7
Old: Prediction/stable/v3.1/Prediction.json#L302:7
1008 - ModifiedOperationId The operation id has been changed from 'DetectImageWithNoStore' to 'ObjectDetector_AnalyzeImageWithoutSaving'. This will impact generated code.
New: Prediction/stable/v3.1/Prediction.json#L357:7
Old: Prediction/stable/v3.1/Prediction.json#L372:7
1008 - ModifiedOperationId The operation id has been changed from 'DetectImageUrl' to 'ObjectDetector_AnalyzeImageUrl'. This will impact generated code.
New: Prediction/stable/v3.1/Prediction.json#L424:7
Old: Prediction/stable/v3.1/Prediction.json#L442:7
1008 - ModifiedOperationId The operation id has been changed from 'DetectImageUrlWithNoStore' to 'ObjectDetector_AnalyzeImageUrlWithoutSaving'. This will impact generated code.
New: Prediction/stable/v3.1/Prediction.json#L495:7
Old: Prediction/stable/v3.1/Prediction.json#L516: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.1) new version base version
release_3_1 release_3_1(da64fe9) release_3_1(main)

The following errors/warnings exist before current PR submission:

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

Rule Message
HostParametersValidation The host parameter must be called 'endpoint'.
Location: Prediction/stable/v3.1/Prediction.json#L893
HostParametersValidation The host parameter must be typed 'type 'string', format 'url''.
Location: Prediction/stable/v3.1/Prediction.json#L893
:warning: VersionConvention API version should be a date in YYYY-MM-DD format, optionally suffixed with '-preview'.
Location: Prediction/stable/v3.1/Prediction.json#L4
:warning: VersionPolicy Version segment 'v3.1' in basePath violates Azure versioning policy.
Location: Prediction/stable/v3.1/Prediction.json#L8
:warning: VersionPolicy Operation does not define an 'api-version' query parameter.
Location: Prediction/stable/v3.1/Prediction.json#L26
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Prediction/stable/v3.1/Prediction.json#L27
:warning: Nullable Avoid the use of x-nullable.
Location: Prediction/stable/v3.1/Prediction.json#L34
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Prediction/stable/v3.1/Prediction.json#L36
:warning: Nullable Avoid the use of x-nullable.
Location: Prediction/stable/v3.1/Prediction.json#L49
:warning: Formdata Check for appropriate use of formData parameters.
Location: Prediction/stable/v3.1/Prediction.json#L51
:warning: ErrorResponse Error response should contain a x-ms-error-code header.
Location: Prediction/stable/v3.1/Prediction.json#L66
:warning: ErrorResponse Error response schema should contain an object property named error.
Location: Prediction/stable/v3.1/Prediction.json#L68
:warning: VersionPolicy Operation does not define an 'api-version' query parameter.
Location: Prediction/stable/v3.1/Prediction.json#L93
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Prediction/stable/v3.1/Prediction.json#L94
:warning: Nullable Avoid the use of x-nullable.
Location: Prediction/stable/v3.1/Prediction.json#L101
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Prediction/stable/v3.1/Prediction.json#L103
:warning: Nullable Avoid the use of x-nullable.
Location: Prediction/stable/v3.1/Prediction.json#L116
:warning: Formdata Check for appropriate use of formData parameters.
Location: Prediction/stable/v3.1/Prediction.json#L118
:warning: ErrorResponse Error response should contain a x-ms-error-code header.
Location: Prediction/stable/v3.1/Prediction.json#L133
:warning: ErrorResponse Error response schema should contain an object property named error.
Location: Prediction/stable/v3.1/Prediction.json#L135
:warning: VersionPolicy Operation does not define an 'api-version' query parameter.
Location: Prediction/stable/v3.1/Prediction.json#L162
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Prediction/stable/v3.1/Prediction.json#L163
:warning: Nullable Avoid the use of x-nullable.
Location: Prediction/stable/v3.1/Prediction.json#L170
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Prediction/stable/v3.1/Prediction.json#L172
:warning: Nullable Avoid the use of x-nullable.
Location: Prediction/stable/v3.1/Prediction.json#L194
:warning: ErrorResponse Error response should contain a x-ms-error-code header.
Location: Prediction/stable/v3.1/Prediction.json#L204
:warning: ErrorResponse Error response schema should contain an object property named error.
Location: Prediction/stable/v3.1/Prediction.json#L206
:warning: VersionPolicy Operation does not define an 'api-version' query parameter.
Location: Prediction/stable/v3.1/Prediction.json#L233
:warning: PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Prediction/stable/v3.1/Prediction.json#L234
:warning: Nullable Avoid the use of x-nullable.
Location: Prediction/stable/v3.1/Prediction.json#L241
️️✔️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 pending [Detail]
Posted by Swagger Pipeline | How to fix these errors?

Swagger Generation Artifacts

️🔄ApiDocPreview inProgress [Detail]
Posted by Swagger Pipeline | How to fix these errors?

/pr RequestMerge

MinjingZhu avatar Apr 29 '24 22:04 MinjingZhu

@bojunehsu Are you ready to approve this PR?

TimLovellSmith avatar Apr 29 '24 23:04 TimLovellSmith