required-api-info
Overview
This rule belongs to the swagger-v2-standards-validation
ruleset and states that:
The Swagger root object must specify metadata about the API using the info
property.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Required property info in root Swagger object is missing. |
Code | SWAGGER20STANDARDS_V003 |
Type | Validation |
Rule System | Semantic |
Broad Category | Swagger Root Information |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | swagger2 swagger standards semantic validation info metadata |
Suggested Fixes
- Add missing
info
property in the root object i.e. in the top level properties of the document. - Make sure that the
info
property is a valid object and not set as null.