Hi All, As per the offline discussion we had, please find the summary of representing the arrays in JSON Schema.
If we consider an xml which contains an array of Ids, (Id) which does not contain any items inside it, eg: <queryMoreResponse> <result type="QueryResult"> <done>false</done> <queryLocator>01gD0000001vELkIAM-400</queryLocator> <records> * <Id>001D000000HS2PPIA1</Id>* * <Id>001D000000HS2PPIA1</Id>* </records> <size>427</size> </result> </queryMoreResponse> Then, the expected json schema should be as follows "sf:records": { "id": "http://jsonschema.net/queryMoreResponse/result/sf:records", "type": "array", "items": [{ "id": "http://jsonschema.net/queryMoreResponse/result/sf:records/0", "type": "object", "properties": { "sf:Id": { "id":"http://jsonschema.net/queryMoreResponse/result/sf:records/0/sf:Id", "type": "array", *"items": []* } } }] } If we have elements inside, then we can add those as items accordingly. Please find the image which represents the array as shown below Thanks, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev