valid-server-parameter-default-value
Overview
This rule belongs to the apimatic-preliminary-validation ruleset and states that:
The default value specified in the server parameter definition must be valid according to the type definition of this parameter.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Default value of server parameter is invalid. |
| Code | APIMATICPRE_V050 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Server Configuration Parameters |
| Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
| Tags | preliminary checks validation apimatic default value parameter template path server server configuration api |
Suggested Fixes
- Make sure that the default value corresponds with the type definition of the server parameter.
- Default value must not be null or empty.