diff --git a/.gitignore b/.gitignore index daa8c44d9ae3..b64031a44841 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,5 @@ unit-logs/ test_output.txt __pycache__/ *.egg-info/ +**/schemas/output.json +**/schemas/input.json diff --git a/tasks/add-missing-file-checksums/schemas/input.json b/tasks/add-missing-file-checksums/schemas/input.json deleted file mode 100644 index bc454e1a01f1..000000000000 --- a/tasks/add-missing-file-checksums/schemas/input.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "title": "AddMissingFileChecksumsInput", - "description": "Describes the input expected by the add-missing-file-checksums task", - "type": "object", - "required": [ - "granules" - ], - "properties": { - "granules": { - "type": "array", - "items": { - "type": "object", - "required": [ - "files" - ], - "properties": { - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/add-missing-file-checksums/schemas/output.json b/tasks/add-missing-file-checksums/schemas/output.json deleted file mode 100644 index 882ac8681bfd..000000000000 --- a/tasks/add-missing-file-checksums/schemas/output.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "title": "AddMissingFileChecksumsOut", - "description": "Describes the output expected from the add-missing-file-checksums task", - "type": "object", - "required": [ - "granules" - ], - "properties": { - "granules": { - "type": "array", - "items": { - "type": "object", - "required": [ - "files" - ], - "properties": { - "files": { - "type": "array", - "items": { - "type": "object", - "required": [ - "bucket", - "checksum", - "checksumType", - "key" - ], - "additionalProperties": false, - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/cnm-response/schemas/input.json b/tasks/cnm-response/schemas/input.json deleted file mode 100644 index 4374bcef9d42..000000000000 --- a/tasks/cnm-response/schemas/input.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "title": "CnmResponseInput", - "description": "Describes the input expected by the cnm-response task", - "oneOf": [ - { - "description": "CMA input, the normal expected input", - "type": "object", - "required": [ - "granules" - ], - "properties": { - "granules": { - "type": "array", - "description": "Array of all granules", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - }, - "minItems": 1, - "maxItems": 1 - } - } - }, - { - "description": "CNM input, this could happen if the workflow failed before CNM-to-CMA conversion", - "type": "object", - "required": [ - "identifier", - "product" - ], - "properties": { - "identifier": { - "type": "string" - }, - "product": { - "type": "object" - } - } - } - ] -} diff --git a/tasks/cnm-response/schemas/output.json b/tasks/cnm-response/schemas/output.json deleted file mode 100644 index dfb39a2e1a4a..000000000000 --- a/tasks/cnm-response/schemas/output.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "title": "CnmResponseOutput", - "description": "Describes the output produced by the cnm-response task", - "type": "object", - "required": [ - "cnm", - "granules" - ], - "properties": { - "cnm": { - "type": "object", - "description": "The output CNM-R generated in response to the input CNM-S." - }, - "granules": { - "type": "array", - "description": "Array of all granules", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - }, - "additionalProperties": false -} diff --git a/tasks/files-to-granules/schemas/output.json b/tasks/files-to-granules/schemas/output.json deleted file mode 100644 index c31fee29041e..000000000000 --- a/tasks/files-to-granules/schemas/output.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "title": "FilesToGranulesOutput", - "description": "Describes the output produced by the files-to-granules task", - "type": "object", - "properties": { - "granules": { - "type": "array", - "description": "Array of all granules", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/hyrax-metadata-updates/schemas/input.json b/tasks/hyrax-metadata-updates/schemas/input.json deleted file mode 100644 index 3f8150617f2a..000000000000 --- a/tasks/hyrax-metadata-updates/schemas/input.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "title": "HyraxMetadataUpdatesInput", - "description": "Describes the input expected by the hyrax-metadata-updates task", - "type": "object", - "required": [ - "granules" - ], - "properties": { - "granules": { - "type": "array", - "description": "Array of all granules", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/hyrax-metadata-updates/schemas/output.json b/tasks/hyrax-metadata-updates/schemas/output.json deleted file mode 100644 index 4c585e00dafc..000000000000 --- a/tasks/hyrax-metadata-updates/schemas/output.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "title": "HyraxMetadataUpdatesOutput", - "description": "Describes the output produced by the hyrax-metadata-updates task", - "type": "object", - "properties": { - "etags": { - "description": "updated map of s3URIs to ETags", - "type": "object" - }, - "granules": { - "type": "array", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/lzards-backup/schemas/input.json b/tasks/lzards-backup/schemas/input.json deleted file mode 100644 index 7c818db5af21..000000000000 --- a/tasks/lzards-backup/schemas/input.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "title": "LzardsBackupInput", - "description": "Describes the input expected by the LzardsBackup task component. Either [dataType and version] or [collectionId] are required.", - "type": "object", - "required": [ - "granules" - ], - "properties": { - "granules": { - "type": "array", - "items": { - "type": "object", - "required": [ - "files", - "granuleId" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "collectionId": { - "type": "string" - }, - "producerGranuleId": { - "type": "string" - }, - "dataType": { - "type": "string" - }, - "version": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/lzards-backup/schemas/output.json b/tasks/lzards-backup/schemas/output.json deleted file mode 100644 index 1b0ffac86e7c..000000000000 --- a/tasks/lzards-backup/schemas/output.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "title": "LzardsBackupOutput", - "description": "Describes the output expected by the LzardsBackup task component", - "type": "object", - "required": [ - "backupResults", - "granules" - ], - "properties": { - "backupResults": { - "type": "array", - "items": { - "type": "object", - "required": [ - "filename", - "status", - "granuleId", - "collectionId", - "provider", - "createdAt", - "producerGranuleId" - ], - "properties": { - "body": { - "type": "string" - }, - "filename": { - "type": "string" - }, - "status": { - "type": "string" - }, - "granuleId": { - "type": "string" - }, - "collectionId": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "producerGranuleId": { - "type": "string" - }, - "statusCode": { - "type": "number" - } - } - } - }, - "granules": { - "type": "array", - "items": { - "type": "object", - "required": [ - "files", - "granuleId" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "dataType": { - "type": "string" - }, - "version": { - "type": "string" - }, - "collectionId": { - "type": "string" - }, - "producerGranuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/move-granules/schemas/input.json b/tasks/move-granules/schemas/input.json deleted file mode 100644 index f16cf002b6e4..000000000000 --- a/tasks/move-granules/schemas/input.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "title": "MoveGranulesInput", - "description": "Describes the input expected by the move-granules task", - "type": "object", - "required": [ - "granules" - ], - "properties": { - "granules": { - "type": "array", - "description": "Array of all granules", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/move-granules/schemas/output.json b/tasks/move-granules/schemas/output.json deleted file mode 100644 index 3e4cddd813a3..000000000000 --- a/tasks/move-granules/schemas/output.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "title": "MoveGranulesOutput", - "description": "Describes the output produced by the move-granules task", - "type": "object", - "properties": { - "granuleDuplicates": { - "type": "object", - "additionalProperties": { - "files": { - "type": "array", - "items": { - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket in-process file is being staged in in S3", - "type": "string" - }, - "key": { - "description": "S3 Key for in-process file", - "type": "string" - } - } - } - } - } - }, - "granules": { - "type": "array", - "description": "Array of all granules", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/orca-copy-to-archive-adapter/schemas/input.json b/tasks/orca-copy-to-archive-adapter/schemas/input.json deleted file mode 100644 index 6fd53f174bd8..000000000000 --- a/tasks/orca-copy-to-archive-adapter/schemas/input.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "title": "orca-copy-to-archive-adapter Lambda Input", - "description": "The input for the orca-copy-to-archive-adapter Lambda.", - "type": "object", - "required": [ - "granules" - ], - "properties": { - "granules": { - "type": "array", - "description": "A list of objects representing individual files to copy.", - "items": { - "type": "object", - "required": [ - "granuleId", - "createdAt", - "files" - ], - "properties": { - "granuleId": { - "description": "The granule's ID.", - "type": "string" - }, - "createdAt": { - "description": "The time, in milliseconds since 1 January 1970 UTC, data was originally ingested into Cumulus.", - "type": "integer" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/orca-copy-to-archive-adapter/schemas/output.json b/tasks/orca-copy-to-archive-adapter/schemas/output.json deleted file mode 100644 index 0e7a0b451479..000000000000 --- a/tasks/orca-copy-to-archive-adapter/schemas/output.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "title": "orca-copy-to-archive-adapter Lambda Output", - "description": "The output for the orca-copy-to-archive-adapter Lambda.", - "type": "object", - "required": [ - "granules", - "copied_to_orca" - ], - "properties": { - "granules": { - "type": "array", - "description": "The 'granules' property from the input.", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "description": "The granule's ID.", - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - }, - "copied_to_orca": { - "description": "Source URI of the file from origin s3 bucket.", - "type": "array", - "items": { - "type": "string" - } - } - } -} diff --git a/tasks/orca-recovery-adapter/schemas/input.json b/tasks/orca-recovery-adapter/schemas/input.json deleted file mode 100644 index 88a996524378..000000000000 --- a/tasks/orca-recovery-adapter/schemas/input.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "title": "orca-recovery-adapter Lambda Input", - "description": "The input for the orca-recovery-adapter Lambda.", - "type": "object", - "required": [ - "granules" - ], - "properties": { - "granules": { - "type": "array", - "description": "A list of objects representing individual files to copy.", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "description": "The granule's ID.", - "type": "string" - }, - "recoveryBucketOverride": { - "description": "The user specified recovery S3 bucket to store recovered files", - "type": [ - "string", - "null" - ] - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/orca-recovery-adapter/schemas/output.json b/tasks/orca-recovery-adapter/schemas/output.json deleted file mode 100644 index 938fb97ba56d..000000000000 --- a/tasks/orca-recovery-adapter/schemas/output.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "title": "orca-recovery-adapter Lambda Output", - "description": "The output for the orca-recovery-adapter Lambda.", - "type": "object", - "required": [ - "granules", - "recoveryOutput" - ], - "properties": { - "granules": { - "type": "array", - "description": "The 'granules' property from the input.", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "description": "The granule's ID.", - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - }, - "recoveryOutput": { - "description": "The output from orca recovery workflow", - "type": "object" - } - } -} diff --git a/tasks/post-to-cmr/schemas/input.json b/tasks/post-to-cmr/schemas/input.json deleted file mode 100644 index 835a1900ebe6..000000000000 --- a/tasks/post-to-cmr/schemas/input.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "title": "PostToCmrInput", - "description": "Describes the input expected by the post-to-cmr task", - "type": "object", - "required": [ - "granules" - ], - "properties": { - "granules": { - "type": "array", - "description": "Array of all granules", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - }, - "cmrRevisionId": { - "type": "number" - } - } -} diff --git a/tasks/post-to-cmr/schemas/output.json b/tasks/post-to-cmr/schemas/output.json deleted file mode 100644 index b72b92868147..000000000000 --- a/tasks/post-to-cmr/schemas/output.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "title": "PostToCmrOutput", - "description": "Describes the output produced by the post-to-cmr task", - "type": "object", - "properties": { - "granules": { - "type": "array", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/sync-granule/schemas/output.json b/tasks/sync-granule/schemas/output.json deleted file mode 100644 index 5dbf2d4086a8..000000000000 --- a/tasks/sync-granule/schemas/output.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "title": "SyncGranuleOutput", - "description": "Describes the output produced by the sync-granule task", - "type": "object", - "required": [ - "granules" - ], - "properties": { - "granuleDuplicates": { - "type": "object", - "additionalProperties": { - "files": { - "type": "array", - "items": { - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket in-process file is being staged in in S3", - "type": "string" - }, - "key": { - "description": "S3 Key for in-process file", - "type": "string" - } - } - } - } - } - }, - "granules": { - "type": "array", - "items": { - "type": "object", - "required": [ - "granuleId", - "dataType", - "version", - "files", - "createdAt", - "provider" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "dataType": { - "type": "string" - }, - "version": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - }, - "createdAt": { - "type": "number" - }, - "producerGranuleId": { - "type": "string", - "description": "Granule ID from the producer, if available" - }, - "provider": { - "type": "string" - } - } - } - }, - "pdr": { - "required": [ - "name", - "path" - ], - "properties": { - "name": { - "type": "string" - }, - "path": { - "type": "string" - } - } - } - } -} diff --git a/tasks/update-cmr-access-constraints/schemas/input.json b/tasks/update-cmr-access-constraints/schemas/input.json deleted file mode 100644 index 7e4005262867..000000000000 --- a/tasks/update-cmr-access-constraints/schemas/input.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "title": "UpdateCmrAccessConstraintsInput", - "description": "Describes the input expected by the update-cmr-access-constraints task", - "type": "object", - "required": [ - "granules" - ], - "properties": { - "granules": { - "type": "array", - "description": "Array of all granules", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/update-cmr-access-constraints/schemas/output.json b/tasks/update-cmr-access-constraints/schemas/output.json deleted file mode 100644 index 5f7138048b67..000000000000 --- a/tasks/update-cmr-access-constraints/schemas/output.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "title": "UpdateCmrAccessConstraintsOutput", - "description": "Describes the output produced by the update-cmr-access-constraints task", - "type": "object", - "properties": { - "granules": { - "type": "array", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/update-granules-cmr-metadata-file-links/schemas/input.json b/tasks/update-granules-cmr-metadata-file-links/schemas/input.json deleted file mode 100644 index eeaef0cdb100..000000000000 --- a/tasks/update-granules-cmr-metadata-file-links/schemas/input.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "title": "UpdateGranulesCmrMetadataFileLinksInput", - "description": "Describes the input expected by the update-granules-cmr-metadata-file-links task", - "type": "object", - "required": [ - "granules" - ], - "properties": { - "granules": { - "type": "array", - "description": "Array of all granules", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -} diff --git a/tasks/update-granules-cmr-metadata-file-links/schemas/output.json b/tasks/update-granules-cmr-metadata-file-links/schemas/output.json deleted file mode 100644 index 1faf21763146..000000000000 --- a/tasks/update-granules-cmr-metadata-file-links/schemas/output.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "title": "UpdateGranulesCmrMetadataFileLinksOutput", - "description": "Describes the output produced by the update-granules-cmr-metadata-file-links task", - "type": "object", - "properties": { - "etags": { - "description": "updated map of s3URIs to ETags", - "type": "object" - }, - "granules": { - "type": "array", - "description": "Array of all granules", - "items": { - "type": "object", - "required": [ - "granuleId", - "files" - ], - "properties": { - "granuleId": { - "type": "string" - }, - "files": { - "type": "array", - "items": { - "additionalProperties": false, - "type": "object", - "required": [ - "bucket", - "key" - ], - "properties": { - "bucket": { - "description": "Bucket where file is archived in S3", - "type": "string" - }, - "checksum": { - "description": "Checksum value for file", - "type": "string" - }, - "checksumType": { - "description": "Type of checksum (e.g. md5, sha256, etc)", - "type": "string" - }, - "fileName": { - "description": "Name of file (e.g. file.txt)", - "type": "string" - }, - "key": { - "description": "S3 Key for archived file", - "type": "string" - }, - "size": { - "description": "Size of file (in bytes)", - "type": "number" - }, - "source": { - "description": "Source URI of the file from origin system (e.g. S3, FTP, HTTP)", - "type": "string" - }, - "type": { - "description": "Type of file (e.g. data, metadata, browse)", - "type": "string" - } - } - } - } - } - } - } - } -}