diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..61b62e2 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "swodlr-schemas"] + path = swodlr-schemas + url = https://github.com/podaac/swodlr-schemas.git diff --git a/schemas/job.json b/schemas/job.json deleted file mode 100644 index 0cc6b9d..0000000 --- a/schemas/job.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "swodlr-job", - "type": "object", - "properties": { - "product_id": { - "type": "string" - }, - "job_id": { - "type": "string" - }, - "job_status": { - "type": "string" - }, - "stage": { - "type": "string" - }, - "granules": { - "type": "array", - "items": { - "type": "string" - } - }, - "errors": { - "type": "array", - "items": { - "type": "string" - } - }, - "traceback": { - "type": "string" - }, - "metadata": { - "type": "object" - } - }, - "additionalProperties": false, - "required": [ - "product_id", - "job_status", - "stage" - ] -} diff --git a/schemas/jobset.json b/schemas/jobset.json deleted file mode 100644 index 56a0bf3..0000000 --- a/schemas/jobset.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "swodlr-jobset", - "type": "object", - "properties": { - "jobs": { - "type": "array", - "items": { - "$ref": "swodlr-job#" - } - }, - "waiting": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "jobs" - ] -} diff --git a/swodlr-schemas b/swodlr-schemas new file mode 160000 index 0000000..a6b2c52 --- /dev/null +++ b/swodlr-schemas @@ -0,0 +1 @@ +Subproject commit a6b2c529544ee17b41a6d1b4c654c8306864002b