Skip to content

Commit 33f7f07

Browse files
authored
Add FAQ document (Azure#9230)
* Add FAQ document * Fix typo & change MV descriptions * fix ci-fix url * Change SDK generation
1 parent 2688789 commit 33f7f07

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

documentation/FAQ.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# FAQ in Swagger PR Review
2+
3+
This page is intended to answer questions frequently asked during Azure Swagger PR review.
4+
5+
1. [I am new to Swagger/OpenAPI, How should I start?](#Onboard)
6+
2. [How to fix validation failure?](#validation)
7+
3. [How to generate SDK from Swagger?](#SDK)
8+
4. [How to generate document](#doc)
9+
5. [If need further help, who can we contact?](#contact)
10+
11+
## How to onboard PR review Process?<a name="Onboard"></a>
12+
If you are new to Swagger/OpenAPI, you can refer to this [document](https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/80/Getting-started-with-OpenAPI-specifications)
13+
14+
If you are new to Swagger PR review process, you can refer to this [flowchart](https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/212/Swagger-PR-Review)
15+
16+
You can refer to this [document](https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/49/Request-Access-to-Azure-SDK-repos) to get read permission to submit PR.
17+
18+
## How to fix validation failure?<a name="validation"></a>
19+
| Validation | Description | How to fix |
20+
| --- | --- | --- |
21+
| [Model Validation](https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/Semantic-and-Model-Violations-Reference.md) | Model validation enforces correctness between example and swagger. It checks whether definitions for request parameters and responses, match an expected input/output payload of the service. | [Here](https://aka.ms/ci-fix#model-validation) |
22+
| [Lint diff](https://github.com/Azure/azure-openapi-validator) | A tool to check whether changes in PR are satisfied with certain kind of rules outlined in the [automated rules checklist](https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/openapi-authoring-automated-guidelines.md) | [Here](https://aka.ms/ci-fix#linter-validation) |
23+
| [Breaking Change](https://github.com/Azure/openapi-diff) | A tool to check what a swagger PR has changed and whether these changes violate [breaking changes rules](https://github.com/Azure/openapi-diff/blob/master/docs/README.md).| [Here](https://aka.ms/ci-fix#breaking-change-check)|
24+
| [Avocado](https://github.com/Azure/avocado/blob/master/README.md) | Avocado validates folder structure and configuration. | [Here](https://aka.ms/ci-fix#avocado) |
25+
| [Semantic](https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/Semantic-and-Model-Violations-Reference.md) | Semantic validation enforces correctness on the swagger specific elements. Such as paths and operations. Ensure the element definition meet the OpenApi 2.0 specification. | [Here](https://aka.ms/ci-fix#semantic-validation) |
26+
| Prettier | Code formatter for Swagger | [Here](https://aka.ms/ci-fix#prettier-check) |
27+
| BranchProtectionForPrivateRepo | BranchProtectionForPrivateRepo is designed to always fail to prevent from merging PR into master which is not allow in private swagger repo as it will cause issue to sync up from public repo. | You can ignore this failure |
28+
29+
Refer to [Document](https://aka.ms/ci-fix) for how to run these tools locally
30+
31+
## How to generate SDK from Swagger?<a name="SDK"></a>
32+
If you are working in the public repository,SDK generation is triggered as soon as your OpenAPI specification (a.k.a swagger) PR is created/committed/merged in to the azure-rest-api-specs repository.
33+
34+
If you are working in the private repository, please refer to this [document](https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/81/Management-Plane-SDK-generation) to manually generate SDKs of different languages, including Python, Java, Go, C#, Js etc.
35+
36+
37+
## How to generate Document from Swagger?<a name="doc"></a>
38+
Refer to [document](https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/79/Generation-of-docs-on-docs.microsoft.com)
39+
40+
## If need further help, who can we contact?<a name="contact"></a>
41+
If any other help need, Please send a mail to vscswagger@microsoft.com

0 commit comments

Comments
 (0)