-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Removing unused state + Fixing enum + Adding versioning to DALL-E models #24560
Conversation
Hi, @glecaros 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 |
---|---|---|
generated.json | 2023-06-01-preview(5a640e8) | 2023-06-01-preview(main) |
generated.json | 2022-12-01(5a640e8) | 2022-12-01(main) |
generated.json | 2023-05-15(5a640e8) | 2023-05-15(main) |
Rule | Message |
---|---|
1019 - RemovedEnumValue |
The new version is removing enum value(s) 'deleted' from the old version. New: inference/preview/2023-06-01-preview/generated.json#L1015:9 Old: inference/preview/2023-06-01-preview/generated.json#L1015:9 |
1019 - RemovedEnumValue |
The new version is removing enum value(s) 'deleted' from the old version. New: inference/preview/2023-06-01-preview/generated.json#L1041:9 Old: inference/preview/2023-06-01-preview/generated.json#L1041:9 |
1019 - RemovedEnumValue |
The new version is removing enum value(s) 'deleted' from the old version. New: inference/preview/2023-06-01-preview/generated.json#L1132:5 Old: inference/preview/2023-06-01-preview/generated.json#L1132:5 |
️️✔️
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.1.3) | new version | base version |
---|---|---|
release_2022_12_01_autogen | release_2022_12_01_autogen(5a640e8) | release_2022_12_01_autogen(main) |
release_2023_05_15_autogen | release_2023_05_15_autogen(5a640e8) | release_2023_05_15_autogen(main) |
release_2023_06_01_preview_autogen | release_2023_06_01_preview_autogen(5a640e8) | release_2023_06_01_preview_autogen(main) |
The following errors/warnings exist before current PR submission:
Only 30 items are listed, please refer to log for more details.
Rule | Message |
---|---|
Security definition should have a description. Location: inference/preview/2023-06-01-preview/generated.json#L46 |
|
Security definition should have a description. Location: inference/preview/2023-06-01-preview/generated.json#L51 |
|
OperationId should be of the form 'Noun_Verb' Location: inference/preview/2023-06-01-preview/generated.json#L64 |
|
Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: inference/preview/2023-06-01-preview/generated.json#L70 |
|
Parameter should have a description. Location: inference/preview/2023-06-01-preview/generated.json#L77 |
|
OperationId should be of the form 'Noun_Verb' Location: inference/preview/2023-06-01-preview/generated.json#L115 |
|
Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: inference/preview/2023-06-01-preview/generated.json#L121 |
|
Parameter should have a description. Location: inference/preview/2023-06-01-preview/generated.json#L128 |
|
Operation might be pageable. Consider adding the x-ms-pageable extension. Location: inference/preview/2023-06-01-preview/generated.json#L165 |
|
OperationId should be of the form 'Noun_Verb' Location: inference/preview/2023-06-01-preview/generated.json#L166 |
|
Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: inference/preview/2023-06-01-preview/generated.json#L172 |
|
Parameter should have a description. Location: inference/preview/2023-06-01-preview/generated.json#L179 |
|
OperationId should be of the form 'Noun_Verb' Location: inference/preview/2023-06-01-preview/generated.json#L217 |
|
Parameter should have a description. Location: inference/preview/2023-06-01-preview/generated.json#L223 |
|
OperationId should be of the form 'Noun_Verb' Location: inference/preview/2023-06-01-preview/generated.json#L268 |
|
Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: inference/preview/2023-06-01-preview/generated.json#L274 |
|
Schema name should be Pascal case. Location: inference/preview/2023-06-01-preview/generated.json#L311 |
|
Schema name should be Pascal case. Location: inference/preview/2023-06-01-preview/generated.json#L346 |
|
Schema name should be Pascal case. Location: inference/preview/2023-06-01-preview/generated.json#L359 |
|
Property should have a defined type. Location: inference/preview/2023-06-01-preview/generated.json#L385 |
|
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: inference/preview/2023-06-01-preview/generated.json#L503 |
|
Avoid the use of x-nullable. Location: inference/preview/2023-06-01-preview/generated.json#L583 |
|
Property should have a defined type. Location: inference/preview/2023-06-01-preview/generated.json#L587 |
|
Avoid the use of x-nullable. Location: inference/preview/2023-06-01-preview/generated.json#L681 |
|
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: inference/preview/2023-06-01-preview/generated.json#L770 |
|
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: inference/preview/2023-06-01-preview/generated.json#L800 |
|
Schema should have a description or title. Location: inference/preview/2023-06-01-preview/generated.json#L1106 |
|
Security definition should have a description. Location: inference/stable/2022-12-01/generated.json#L46 |
|
Security definition should have a description. Location: inference/stable/2022-12-01/generated.json#L51 |
|
OperationId should be of the form 'Noun_Verb' Location: inference/stable/2022-12-01/generated.json#L64 |
️️✔️
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 succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️
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 @glecaros! The automation detected breaking changes in this pull request. As a result, it added the |
@@ -10,16 +10,13 @@ namespace Azure.OpenAI; | |||
@doc("A description of the intended purpose of a message within a chat completions interaction.") | |||
enum ChatRole { | |||
@doc("The role that instructs or sets the behavior of the assistant.") | |||
@projectedName("json", "system") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we'd like to excise the verbose use of projectedName
(I believe feedback was provided to that effect) we should do it across the board, as there's a lot of it. I'd recommend omitting this file's changes from the PR just to keep it simple.
This PR removes an unused
deleted
state from theState
enum used for Image LRO. This also fixes the definition of theChatRole
enum and properly mark all image related models with the right version.