Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 2.21 KB

swagger-checklist.md

File metadata and controls

23 lines (12 loc) · 2.21 KB

Swagger Checklist for Microsoft Azure

Introduction

This checklist is a current snapshot of requirements for developing Swagger specifications. The checklist will be continuously updated to reflect issues uncovered during Swagger specification reviews.

Checklist

Validation Tools for Swagger Checklist

Today, there are tools available for validating a sizable portion of this checklist. Please install these tools on your development machine and use them to validate your Swaggers as you build them.

  • AutoRest Linter – Linter statically analyzes a Swagger for errors and violations of requirements outlined in this checklist. Linter should be run when Swaggers are created or updated. Linter will be continously updated to validate newer requirements. NOTE: This checkmark ( ✅ ) indicates that rule is covered by AutoRest linter tool.

  • Swagger Model Validator - Model Validator validates models defined for body parameters and responses, and matches them against the expected input and output of an operation. To make this real, test examples are required to be specified in a Swagger for every operation defined in a Swagger. Test examples are integrated into a Swagger using the "x-ms-examples" extension, which will be used to test against the defined models. Sample test examples for this extension can be found in the Redis Cache Swagger.

The Azure Developer Experience team will continue to deliver rich tools to validate this checklist.