Hi All,
We are supporting the schema generation for CSV payloads in visual data
mapper and please find the details as follows
*Input* :
studentID,studentName,class,gender
ST001,Mike,10M3,male
ST002,Tyson,10B1,male
ST003,Alisha,10B2,female
*Generated Schema:*
{
"$schema" : "http://json-schema.org/draft-04/schema#",
"nullable" : "false",
"id" : "http://wso2jsonschema.org",
"title" : "root",
"type" : "array",
"items" : [ {
"id" : "http://wso2jsonschema.org/0",
"type" : "object",
"properties" : {
"studentID" : {
"nullable" : "false",
"id" : "http://wso2jsonschema.org/0/studentID",
"type" : "string"
},
"gender" : {
"nullable" : "false",
"id" : "http://wso2jsonschema.org/0/gender",
"type" : "string"
},
"studentName" : {
"nullable" : "false",
"id" : "http://wso2jsonschema.org/0/studentName",
"type" : "string"
},
"class" : {
"nullable" : "false",
"id" : "http://wso2jsonschema.org/0/class",
"type" : "string"
}
}
} ]
}
​Thanks,
Sohani
Sohani Weerasinghe
Senior Software Engineer
WSO2, Inc: http://wso2.com
Mobile : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter : https://twitter.com/sohanichristine
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture