required-license-name
Overview
This rule belongs to the openapi-v3-standards-validation ruleset and states that:
The License Object must specify name of the license (used for the API) using the name property.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Required property name in License Object is missing. |
| Code | OPENAPI3STANDARDS_V020 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | License |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | openapi3 openapi standards semantic validation name license |
Suggested Fixes
- Add missing
nameproperty in the License Object. - Make sure that the
nameproperty value is not null or empty. - The value should indicate a valid license name e.g. Apache 2.0.
For More Information
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#license-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#license-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#openapi-specification
- https://docs.apimatic.io/rulesets/overview/