{
    "title": "yade file",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.yade.TransferFile200",
    "type": "object",
    "required": [
        "deliveryDate",
        "file"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "file": {
            "javaType": "com.sos.joc.model.yade.TransferFile",
            "type": "object",
            "description": "compact=true -> required fields + possibly targetPath",
            "required": [
                "transferId",
                "sourcePath"
            ],
            "properties": {
                "surveyDate": {
                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                    "type": "string",
                    "format": "date-time"
                },
                "id": {
                    "type": "number",
                    "format": "utc-millisec",
                    "minimum": 0
                },
                "transferId": {
                    "type": "number",
                    "format": "utc-millisec",
                    "minimum": 0
                },
                "state": {
                    "javaType": "com.sos.joc.model.yade.FileTransferState",
                    "type": "object",
                    "required": [
                        "severity",
                        "_text"
                    ],
                    "properties": {
                        "severity": {
                            "description": "0=transferred,compressed,remaned,success 1=skipped,ignored_due_to_zerobyte_contraint,not_overwritten, 3=undefined, 2=failed,aborted,deleted, 5=waiting,transferring,in_progress,setback,polling",
                            "type": "integer"
                        },
                        "_text": {
                            "javaType": "com.sos.joc.model.yade.FileTransferStateText",
                            "type": "string",
                            "enum": [
                                "UNDEFINED",
                                "WAITING",
                                "TRANSFERRING",
                                "IN_PROGRESS",
                                "TRANSFERRED",
                                "SUCCESS",
                                "SKIPPED",
                                "FAILED",
                                "ABORTED",
                                "COMPRESSED",
                                "NOT_OVERWRITTEN",
                                "DELETED",
                                "RENAMED",
                                "IGNORED_DUE_TO_ZEROBYTE_CONSTRAINT",
                                "ROLLED_BACK",
                                "POLLING"
                            ]
                        }
                    }
                },
                "integrityHash": {
                    "type": "string"
                },
                "modificationDate": {
                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                    "type": "string",
                    "format": "date-time"
                },
                "size": {
                    "type": "number",
                    "format": "utc-millisec",
                    "minimum": 0
                },
                "error": {
                    "javaType": "com.sos.joc.model.common.Err",
                    "type": "object",
                    "required": [
                        "code",
                        "message"
                    ],
                    "properties": {
                        "code": {
                            "type": "string"
                        },
                        "message": {
                            "type": "string"
                        }
                    }
                },
                "sourcePath": {
                    "type": "string"
                },
                "sourceName": {
                    "type": "string"
                },
                "targetPath": {
                    "type": "string"
                },
                "targetName": {
                    "type": "string"
                }
            }
        }
    }
}