[AQ] edit pass: REST API reference docs#23288
Conversation
|
Hi, @ShawnJackson Thanks for your PR. I am workflow bot for review process. Here are some small tips. Any feedback about review process or workflow bot, pls contact swagger and tools team. vscswagger@microsoft.com |
Swagger Validation Report
|
| compared swaggers (via Oad v0.10.4)] | new version | base version |
|---|---|---|
| ContentModerator.json | v1.0(c747f66) | v1.0(main) |
| analyzeconversations.json | 2022-10-01-preview(c747f66) | 2022-10-01-preview(main) |
| questionanswering.json | 2022-10-01-preview(c747f66) | 2022-10-01-preview(main) |
| TextAnalytics.json | v3.2-preview.2(c747f66) | v3.2-preview.2(main) |
️️✔️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 tags (via openapi-validator v2.0.0) | new version | base version |
|---|---|---|
| release_1_0 | release_1_0(c747f66) | release_1_0(main) |
| release_2022_10_01_preview | release_2022_10_01_preview(c747f66) | release_2022_10_01_preview(main) |
| release_3_2_preview.2 | release_3_2_preview.2(c747f66) | release_3_2_preview.2(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: ContentModerator/stable/v1.0/ContentModerator.json#L24 |
HostParametersValidation |
The host parameter must be typed 'type 'string', format 'url''. Location: ContentModerator/stable/v1.0/ContentModerator.json#L24 |
XmsEnumValidation |
The enum types should have x-ms-enum type extension set with appropriate options. Location: ContentModerator/stable/v1.0/ContentModerator.json#L219 |
XmsEnumValidation |
The enum types should have x-ms-enum type extension set with appropriate options. Location: ContentModerator/stable/v1.0/ContentModerator.json#L275 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: ContentModerator/stable/v1.0/ContentModerator.json#L1043 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: ContentModerator/stable/v1.0/ContentModerator.json#L1050 |
OperationIdNounVerb |
Per the Noun_Verb convention for Operation Ids, the noun 'Reviews' 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: ContentModerator/stable/v1.0/ContentModerator.json#L1124 |
OperationIdNounVerb |
Per the Noun_Verb convention for Operation Ids, the noun 'Reviews' 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: ContentModerator/stable/v1.0/ContentModerator.json#L1218 |
XmsEnumValidation |
The enum types should have x-ms-enum type extension set with appropriate options. Location: ContentModerator/stable/v1.0/ContentModerator.json#L1251 |
XmsEnumValidation |
The enum types should have x-ms-enum type extension set with appropriate options. Location: ContentModerator/stable/v1.0/ContentModerator.json#L1347 |
AvoidAnonymousParameter |
Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models. Location: ContentModerator/stable/v1.0/ContentModerator.json#L1364 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: ContentModerator/stable/v1.0/ContentModerator.json#L1428 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: ContentModerator/stable/v1.0/ContentModerator.json#L1468 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: ContentModerator/stable/v1.0/ContentModerator.json#L1474 |
OperationIdNounVerb |
Per the Noun_Verb convention for Operation Ids, the noun 'Reviews' 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: ContentModerator/stable/v1.0/ContentModerator.json#L1519 |
XmsEnumValidation |
The enum types should have x-ms-enum type extension set with appropriate options. Location: ContentModerator/stable/v1.0/ContentModerator.json#L1617 |
OperationIdNounVerb |
Per the Noun_Verb convention for Operation Ids, the noun 'Reviews' 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: ContentModerator/stable/v1.0/ContentModerator.json#L2143 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: ContentModerator/stable/v1.0/ContentModerator.json#L2271 |
MissingTypeObject |
The schema 'Frames' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: ContentModerator/stable/v1.0/ContentModerator.json#L2314 |
MissingTypeObject |
The schema 'Frame' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: ContentModerator/stable/v1.0/ContentModerator.json#L2329 |
MissingTypeObject |
The schema 'Screen' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: ContentModerator/stable/v1.0/ContentModerator.json#L2356 |
MissingTypeObject |
The schema 'Classification' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: ContentModerator/stable/v1.0/ContentModerator.json#L2406 |
MissingTypeObject |
The schema 'Category1' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: ContentModerator/stable/v1.0/ContentModerator.json#L2409 |
MissingTypeObject |
The schema 'Category2' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: ContentModerator/stable/v1.0/ContentModerator.json#L2418 |
MissingTypeObject |
The schema 'Category3' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: ContentModerator/stable/v1.0/ContentModerator.json#L2427 |
MissingTypeObject |
The schema 'PII' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: ContentModerator/stable/v1.0/ContentModerator.json#L2442 |
MissingTypeObject |
The schema 'Email' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: ContentModerator/stable/v1.0/ContentModerator.json#L2477 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: ContentModerator/stable/v1.0/ContentModerator.json#L2492 |
MissingTypeObject |
The schema 'SSN' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: ContentModerator/stable/v1.0/ContentModerator.json#L2498 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: ContentModerator/stable/v1.0/ContentModerator.json#L2505 |
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
️⚠️~[Staging] ServiceAPIReadinessTest: 0 Warnings warning [Detail]
API Test is not triggered due to precheck failure. Check pipeline log for details.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️CadlAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️❌ModelValidation: 15 Errors, 0 Warnings failed [Detail]
️️✔️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).
️️✔️CadlValidation succeeded [Detail] [Expand]
Validation passes for CadlValidation.
️️✔️TypeSpec Validation succeeded [Detail] [Expand]
Validation passes for TypeSpec Validation.
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
Swagger Generation Artifacts
|
Generated ApiView
|
|
Hi @ShawnJackson, Your PR has some issues. Please fix the CI sequentially by following the order of
|
mikekistler
left a comment
There was a problem hiding this comment.
This looks really good!
I left some comments about "optional" and "required" in descriptions and also repeating lists of allowed values. Please apply this throughout.
Tag me to re-review when those changes are done and this should be good to merge.
specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json
Outdated
Show resolved
Hide resolved
specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json
Outdated
Show resolved
Hide resolved
specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json
Outdated
Show resolved
Hide resolved
specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json
Outdated
Show resolved
Hide resolved
|
@mikekistler - I applied your suggestions globally. Please take another look. |
heaths
left a comment
There was a problem hiding this comment.
A random sampling of text LGTM.
|
Be sure to go through the PoliCheck and SpellCheck failures. The ModelValidation failures are moot since you're not changing anything besides descrptions. For Anomaly Detector, please update the .cadl file(s) and regenerate the swagger instead of the swagger directly. |
mikekistler
left a comment
There was a problem hiding this comment.
Looks good! 👍
There is one complication with the specification/cognitiveservices/data-plane/AnomalyDetector/stable/v1.1/openapi.json. This file is actually generated using TypeSpec, so we need to make the corresponding changes to the TypeSpec source. I can do that but I'd like to separate that into it's own PR. Can you please drop that file from this PR? I'll create a new PR to include the updated TypeSpec and your changed openapi.json.
@mikekistler - I dropped openapi.json from this PR. |
|
The spell check issue was fixed in #23379 and the model validation issues weren't introduced here. |
fed6669 to
c747f66
Compare
* edit pass: rest-api-reference-docs * edit pass: rest-api-reference-docs * edit pass: rest-api-reference-docs * removing file * blacklist to blocklist
@mikekistler, @nitinme - Here's my edit pass on the five JSON files, as requested in work item 69663. Please review my changes and let me know if any of them affect technical meaning.