required-info-version
Overview
This rule belongs to the swagger-v2-standards-validation ruleset and states that:
The Info Object must specify a version number for the current application API using the version property.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Required property version in Info Object is missing. |
| Code | SWAGGER20STANDARDS_V021 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Info |
| Products Impacted | Developer Experience Portal |
| Tags | swagger2 swagger standards semantic validation version info metadata |
Suggested Fixes
- Add missing
versionproperty in the Info Object. - Make sure that the
versionproperty value is not null or empty. - The value should indicate the version of the Swagger document you are currently drafting. If you are unsure, simply set the value to '1.0'.
- This version is not the same as the Swagger standard version.