-
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
Fixing enum to have the proper values + reenabling csharp generation. #24538
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. [email protected] |
Swagger Validation Report
|
compared swaggers (via Oad v0.10.4)] | new version | base version |
---|---|---|
generated.json | 2023-06-01-preview(f986c51) | 2023-06-01-preview(main) |
generated.json | 2022-12-01(f986c51) | 2022-12-01(main) |
generated.json | 2023-05-15(f986c51) | 2023-05-15(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.1.3) | new version | base version |
---|---|---|
release_2022_12_01_autogen | release_2022_12_01_autogen(f986c51) | release_2022_12_01_autogen(main) |
release_2023_05_15_autogen | release_2023_05_15_autogen(f986c51) | release_2023_05_15_autogen(main) |
release_2023_06_01_preview_autogen | release_2023_06_01_preview_autogen(f986c51) | 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
|
ghost
added
the
Cognitive Services
label
Jun 21, 2023
Generated ApiView
|
trrwilson
approved these changes
Jun 21, 2023
joseharriaga
approved these changes
Jun 21, 2023
harryli0108
pushed a commit
to harryli0108/azure-rest-api-specs
that referenced
this pull request
Jul 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #24496