Hello everyone,
on the 19th of september two APIs concerting revenue sharing management were released: TMF738 and TMF736. The implementation of TMF738 went fine, but we experience problems with TMF736.
The issues are connected to the field atType
in classes TmfPolicyEntityRef
und TmfPolicyConditionRef
.
The error that we get is the following:
Caused by: org.springframework.data.mapping.MappingException: Ambiguous field mapping detected!
Both private java.lang.String org.openapitools.model.TmfPolicyEntityRef.atType and
@io.swagger.v3.oas.annotations.media.Schema(...) private java.lang.String
org.openapitools.model.TmfPolicyConditionRef.atType map to the same field name atType!
Disambiguate using @Field annotation!
.
What we did:
- We used the OpenAPIGenerator version 7.0 to automatically generate classes for our springboot application
- The generated classes are based on the YAML file of TMF736
- During the compilation we recieve the above error message. We interpret that error such as the classes cannot write data from the field atType to MongoDB because the field was already mapped from some other mapping of the genrated classes.
- We have tried several workarounds but were not successfull.
Does anyone have an idea what the problem could be?
Best Regards
Anton
------------------------------
Anton Tsapko
conology
------------------------------