Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe current model serialization scheme does not support "Dynamic" type usage.
CodeAPIMATICCODEGEN_V009
TypeValidation
Rule SystemSemantic
Broad CategoryXML Attributes
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic 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.

For More Information