davsclaus commented on pull request #5750:
URL: https://github.com/apache/camel/pull/5750#issuecomment-869467120
I added a comment in CAMEL-16760
Try to change from
```
@XmlAttribute
private String unmarshalTypeName;
@XmlTransient
private Class<?> unmarshalType;
```
To
```
@XmlAttribute(name = "unmarshalType")
private String unmarshalTypeName;
@XmlTransient
private Class<?> unmarshalType;
```
And then in the xxxReifier you change from
```
if (definition.getUnmarshalType() != null) {
properties.put("unmarshalTypeName",
asTypeName(definition.getUnmarshalType()));
} else {
properties.put("unmarshalTypeName",
definition.getUnmarshalTypeName());
}
```
to
```
properties.put("unmarshalType", or(definition.getUnmarshalType(),
definition.getUnmarshalTypeName()));
```
And you do this for the others like jsonView, collectionType etc.
And then you need to regen the core source code to update the model, and
then also regen the source code of the components etc.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]