supported-response-status-attribute-value
Overview
This rule belongs to the wadl-validation ruleset and states that:
If multiple responses are disabled via import settings provided in the APIMatic Metadata file, only response definitions belonging to status code ranges 200-208 and 400-599 will be imported. Those outside the supported range will be ignored automatically during import/transformations in APIMatic. Therefore, ensure that the value assigned to the status attribute of a <response> element falls in the same range.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Warning |
| Message | Provided response status code is not supported in the current import configuration. |
| Code | WADL_V400 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Responses |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | wadl api semantic validation http status code status code status attribute response method |
Suggested Fixes
- Enable import setting
ImportMultipleResponsesusing the APIMatic Metadata file. - Remove the <response> element from the <method> definition which has an unsupported status code value.
For More Information
- https://www.w3.org/Submission/wadl/#x3-200002.10
- https://www.w3.org/Submission/wadl/#x3-170002.8.2
- https://docs.apimatic.io/manage-apis/create-or-import-api/#import-settings-object
- https://docs.apimatic.io/changelog/support-for-multiple-responses-added-in-api-transformer-across-all-formats
- https://www.w3.org/Submission/wadl/
- https://docs.apimatic.io/rulesets/overview/