no-dynamic-type-usage-with-xml
Overview
This rule belongs to the apimatic-codegen-validation ruleset and states that:
If API uses XML serialization/deserialization, then use of "Dynamic" type components is not supported.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | The current model serialization scheme does not support "Dynamic" type usage. |
| Code | APIMATICCODEGEN_V009 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | XML Attributes |
| Products Impacted | Code Generation, Developer Experience Portal |
| Tags | apimatic code generation codegen sdks portal docs validation apimatic model serialization scheme codegen setting dynamic type xml |
Suggested Fixes
- Adjust the type of all components that use "Dynamic" values.
- Change the value of model serialization scheme CodeGen setting to one that supports Dynamic type usage.
- Disable XML serialization/deserialization in the API.