non-empty-info-version
Overview
This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:
In the OpenAPI 3.0 specification, the info version is a required property. The info object must contain non-null, non-empty and valid version property.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Required info version is missing or empty. |
| Code | OPENAPI3APIMATIC_L041 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | OpenAPI Info |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | openapi3 openapi apimatic semantic linting API info version required missing empty |
Suggested Fixes
- Set a version of the API in the info object.
- This version should not be confused with the OpenAPI specification version or the API implementation version which is specified using the
openapiproperty in the root OpenAPI object.