Leeds Import JSON Schema
The schema for the Leeds Import API is here:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"application": {"type": "string"},
"name": {"type": "string"},
"description": {"type": "string"},
"UoLFCDM_version": {"type": "string"},
"annotations": {"$ref": "#/definitions/annotations_type"},
"entities": {"$ref": "#/definitions/entities2_type"}
},
"definitions": {
"annotations_type": {
"type": "array",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"fileFormat": {"type": "string"},
"dataOwner": {"type": "string"},
"contact": {"type": "string"}
},
"required": [
"contact",
"fileFormat",
"dataOwner"
]
}
},
"annotations2_type": {
"type": "array",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"inputFileFormat": {"type": "string"},
"CDR_referenceId": {"type": "string"},
"CDR_productVersion": {"type": "string"},
"dataSource": {"type": "string"},
"dataOwner": {"type": "string"},
"contact": {"type": "string"},
"createDatetime": {"type": "string"},
"updateDateTime": {"type": "string"},
"fileSize1": {"type": "string"},
"outputFileFormat1": {"type": "string"},
"inputFilename1": {"type": "string"},
"inputFilepath1": {"type": "string"},
"inputFilename2": {"type": "string"},
"inputFilepath2": {"type": "string"},
"outputFilename": {"type": "string"},
"outputFileFormat": {"type": "string"},
"outputFilepath": {"type": "string"}
},
"required": [
"outputFileFormat1",
"inputFilepath1",
"fileSize1",
"inputFilepath2",
"createDatetime",
"inputFilename2",
"inputFilename1",
"inputFileFormat",
"outputFilename",
"contact",
"CDR_productVersion",
"CDR_referenceId",
"updateDateTime",
"dataSource",
"dataOwner",
"outputFileFormat",
"outputFilepath"
]
}
},
"annotations3_type": {
"type": "array",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"anonymous": {"type": "string"},
"CDR_referenceId": {"type": "string"},
"primaryKey": {"type": "string"},
"updateKey": {"type": "string"}
},
"required": [
"updateKey",
"anonymous",
"CDR_referenceId",
"primaryKey"
]
}
},
"sourceFile1_type": {
"type": "object",
"properties": {
"filename": {"type": "string"},
"fieldList": {"type": "string"}
}
},
"lineage_type": {
"type": "array",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"derivedData": {"type": "string"},
"sourceFile1": {"$ref": "#/definitions/sourceFile1_type"},
"entityDescription": {"type": "string"}
},
"required": [
"entityDescription",
"sourceFile1",
"derivedData"
]
}
},
"entities_type": {
"type": "array",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"name": {"type": "string"},
"description": {"type": "string"},
"dataType": {"type": "string"},
"annotations": {"$ref": "#/definitions/annotations3_type"},
"lineage": {"$ref": "#/definitions/lineage_type"}
},
"required": [
"lineage",
"dataType",
"name",
"description",
"annotations"
]
}
},
"entities2_type": {
"type": "array",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"$type": {"type": "string"},
"name": {"type": "string"},
"description": {"type": "string"},
"annotations": {"$ref": "#/definitions/annotations2_type"},
"entities": {"$ref": "#/definitions/entities_type"}
},
"required": [
"entities",
"name",
"description",
"annotations",
"$type"
]
}
}
}
}