IMS seems is accepting any JSON document and is not validating JSON document with custom object schema.
Steps to replicate issue
a) Define custom object schema of type JSON. A valid JSON schema is uploaded as part of defining JSON custom object. I call it myCustomJSON
b) Create IMS connection point which accepts myCustomJSON as a document type
c) Created document flow using this IMS connection point. JSON document myCustomJSON is then saved to a folder using file connection point
d) Push myCustomJSON to IMS connection point. Get 201 code
e) Push any random JSON document to IMS connection point. Get 201 code
What seems is happening is that IMS connection point is accepting any JSON document and is not validating pushed JSON document against the schema of myCustomJSON. I would had hoped that ION will reject JSON document not matching the schema and would had sent HTTP 4xx code to reflect that and also create confirm bod for it. Currently I get 201 code.
{} -> works
{"mynumber":"123"} -> works
{"myUSnumber": "456"} -> works
Is this a bug in Infor ION or am I missing something??
Appreciate any quick pointers on it !!