diff --git a/protocol-models/src/main/resources/airbyte_protocol/airbyte_protocol.yaml b/protocol-models/src/main/resources/airbyte_protocol/airbyte_protocol.yaml index ab1000d..3dd912c 100644 --- a/protocol-models/src/main/resources/airbyte_protocol/airbyte_protocol.yaml +++ b/protocol-models/src/main/resources/airbyte_protocol/airbyte_protocol.yaml @@ -122,7 +122,7 @@ definitions: - SOURCE_RETRIEVAL_ERROR # Errors casting to appropriate type - DESTINATION_TYPECAST_ERROR - AirbyteFileTransferRecordMessage: + AirbyteFileTransferMessage: type: object additionalProperties: true required: @@ -137,13 +137,7 @@ definitions: description: "stream the data is associated with" type: string file: - description: "transfer file data" - type: object - existingJavaType: com.fasterxml.jackson.databind.JsonNode - data: - description: "record data" - type: object - existingJavaType: com.fasterxml.jackson.databind.JsonNode + "$ref": "#/definitions/AirbyteFileType" emitted_at: description: "when the data was emitted from the source. epoch in millisecond." type: integer @@ -201,6 +195,30 @@ definitions: type: array items: "$ref": "#/definitions/AirbyteStreamState" + AirbyteFileType: + type: object + additionalProperties: true + required: + - file_url + - file_relative_path + - modified + - bytes + properties: + file_url: + description: "local path to file" + type: string + file_relative_path: + description: "relative path to file" + type: string + source_file_url: + description: "source file path" + type: string + modified: + description: "file modified date. epoch in millisecond" + type: string + bytes: + description: "file size in bytes" + type: integer StreamDescriptor: type: object additionalProperties: true