You can use the Graphical Data Mapping editor to create and transform JSON messages with the data model defined from a JSON schema or REST API swagger document.
Ensure that you satisfy the following requirements:
You
can use an external tool to validate the JSON schema file before importing
it and using it for message maps. For example, see http://jsonlint.com.
JSON files appear under Other Resources in the Application Development view of the IBM® Integration Toolkit.
This type could have an transform applied in the map that will set the length in excess of 10 characters. This would not cause a map design validation or runtime error.
"NullableNums": {
"oneOf": [
{
"type": "integer",
},
{
"type": "null"
}
]
}
"Address" : {
"oneOf": [
{"type": "null"},
{"$ref":"#/definitions/Address"}
]
}
"oneOf": [
{
"$ref": "#/definitions/Account"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/Account"
}
}
]
Unable to locate object named "mlib://SafesForceAllModelsShlib/Contact#/-/simpleType{http://www.ibm.com/iib/msl/json}Contact". LeadToContact.map Map Reference Problem
The null input or output object /Contact.json could not be found. LeadToContact.map Map Problem
When
the JSON schema file that is used by a message map is modified and
the map has not been edited and saved again, you might have to invoke
the clean action through the menu option .