How to add additional fields to contract definitions #2472
-
Dear all, I am a beginner using the connector and playing around with the 'Samples' tutorial. I am trying to add additional fields to a contract definition and I was wondering what the steps for doing this are. Suppose we wanted to add a String field called Adding such a field to the
Adding the field to the
I did the same for the I also went to the
However, after requesting the offer catalog, this new field doesn't appear:
How can I add such a field to a contract? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, In general you probably should not do this but if you are trying to learn, I would look at tutorials on serialzing to JSON using Jackson: https://github.com/FasterXML/jackson (You can search for tutorials on how to use Jackson's serialization annotations - there are plenty of them). The correct annotations will solve your problem. |
Beta Was this translation helpful? Give feedback.
Hi,
In general you probably should not do this but if you are trying to learn, I would look at tutorials on serialzing to JSON using Jackson:
https://github.com/FasterXML/jackson
(You can search for tutorials on how to use Jackson's serialization annotations - there are plenty of them). The correct annotations will solve your problem.