Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 3.27 KB

File metadata and controls

37 lines (27 loc) · 3.27 KB

FAQ in Swagger PR Review

This page is intended to answer questions frequently asked during Azure API spec PR review.

  1. I am new to API specs, where should I start?
  2. How to fix validation failure?
  3. How to generate SDK from API specs?
  4. How to generate document
  5. How to generate swagger examples

How to onboard to API spec PR review Process?

If you are new to API spec, you can refer to this document

You can refer to this document to get read permission to submit PR.

How to fix validation failure?

Validation Description How to fix
Model Validation 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
Lint diff A tool to check whether changes in PR are satisfied with certain kind of rules outlined in the automated rules checklist Here
Breaking Change A tool to check what a swagger PR has changed and whether these changes violate breaking changes rules. Here
Avocado Avocado validates folder structure and configuration. Here
Semantic 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
Prettier Code formatter for Swagger Here
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

Refer to Document for how to run these tools locally

How to generate SDK from Swagger?

Refer to this document.

How to generate Document from Swagger?

Refer to document

How to generate examples from Swagger?

Refer to Swagger-Example-Generation