{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "fromPlace": { "type": "string", "maxLength": 50, "description": "From Place" }, "fromState": { "type": "number", "description": "From State" }, "vehicleNo": { "type": "string", "minLength": 7, "maxLength": 15, "description": "Vehicle Number" }, "transMode": { "type": "string", "enum": [ "1", "2", "3", "4" ], "description": "Transport Mode (Road-1,Rail-2,Air-3,Ship-4)" }, "transDocNo": { "type": "string", "maxLength": 15, "description": "Transport Document Number" }, "transDocDate": { "type": "string", "pattern": "[0-3][0-9]/[0-1][0-9]/[2][0][1-2][0-9]", "description": "Transport Document Date" }, "tripSheetEwbBills": { "type": "array", "minItems": 1, "items": [ { "type": "object", "properties": { "ewbNo": { "type": "number", "description": "Ewaybill Number" } }, "required": [ "ewbNo" ] } ] } }, "required": [ "fromPlace", "fromState", "transMode", "tripSheetEwbBills" ] }