Hi, If the payload does not contain the root element, It is not loading the file to generate the schema as reported in [1]. I manually added a root element and a child element in the payload [2] as shown in [3] and generated the schema [4]. Then I deleted the root element and child (highlighted parts in [4]). The final schema looks like [5]. Could you please make sure that the output schema [5] is in a correct format?
[1] https://wso2.org/jira/browse/DEVTOOLESB-226 [2] [ "777925", "732321" ] [3] { "rootelem": [ "777925", "732321" ], "dummychild": "dummyval" } [4] { "id": "http:\/\/wso2jsonschema.org", "title": "root", "$schema": "http:\/\/json-schema.org\/draft-04\/schema#", "properties": { "rootelem": { "id": "http:\/\/wso2jsonschema.org\/rootelem", "items": [ { "id": "http:\/\/wso2jsonschema.org\/rootelem\/0", "type": "string" } ], "type": "array" }, "dummychild": { "id": "http:\/\/wso2jsonschema.org\/dummychild", "type": "string" } }, "type": "object" } [5] { "id": "http:\/\/wso2jsonschema.org", "title": "root", "$schema": "http:\/\/json-schema.org\/draft-04\/schema#", "properties": { "items": [ { "id": "http:\/\/wso2jsonschema.org\/ids\/0", "type": "string" } ] }, "type": "object" } Thank you -- Shakila Sivagnanarajah Associate Software Engineer Mobile :+94 (0) 768 856837 [email protected]
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
