Interface A03ToV10MapperConfig
public interface A03ToV10MapperConfig
Global MapStruct configuration for converting between A2A Protocol v0.3 and v1.0 types.
This configuration interface provides shared settings and default conversion methods used by all mappers in the compat-0.3 conversion layer. It ensures consistent handling of unmapped fields, null values, and component instantiation across the codebase.
Key Configuration:
- unmappedTargetPolicy = ERROR: Compile-time validation ensures no fields are missed
- componentModel = "default": Uses singleton pattern via
A2AMappers_v0_3factory - nullValuePropertyMappingStrategy = IGNORE: Skip null source properties during mapping
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringDefault tenant value for conversions from 0.3 to 1.0.
-
Method Details
-
tenantDefault
Default tenant value for conversions from 0.3 to 1.0.The 1.0 protocol adds a tenant field that doesn't exist in 0.3. When converting from 0.3 to 1.0, we use an empty string as the default tenant, matching the 1.0 MessageSendParams convenience constructor default.
- Returns:
- empty string as default tenant
-