-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from neicnordic/feature/validate-json-schema
Feature/validate json schema
- Loading branch information
Showing
19 changed files
with
1,310 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
amqpstorm | ||
amqpstorm | ||
jsonschema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
"""SDA Orchestrator service for coordinating messages and mapping file id to dataset id.""" | ||
|
||
__title__ = "sda_orchestrator" | ||
__version__ = "0.3.0" | ||
__version__ = "0.4.0" | ||
__author__ = "NeIC System Developers" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""JSON Schemas and function for validating messages. | ||
Schemas are provided by https://github.com/EGA-archive/LocalEGA/tree/master/ingestion/schemas | ||
Under Apache 2.0 license | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"title": "JSON schema for dataset mapping message interface. Derived from Federated EGA schemas.", | ||
"$id": "https://github.com/EGA-archive/LocalEGA/tree/master/schemas/dataset-mapping.json", | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"type": "object", | ||
"required": [ | ||
"type", | ||
"dataset_id", | ||
"accession_ids" | ||
], | ||
"additionalProperties": true, | ||
"properties": { | ||
"type": { | ||
"$id": "#/properties/type", | ||
"type": "string", | ||
"title": "The message type", | ||
"description": "The message type", | ||
"const": "mapping" | ||
}, | ||
"dataset_id": { | ||
"$id": "#/properties/dataset_id", | ||
"type": "string", | ||
"title": "The Accession identifier for the dataset", | ||
"description": "The Accession identifier for the dataset", | ||
"pattern": "^\\S+$", | ||
"examples": [ | ||
"anyidentifier" | ||
] | ||
}, | ||
"accession_ids": { | ||
"$id": "#/properties/accession_ids", | ||
"type": "array", | ||
"title": "The file stable ids in that dataset", | ||
"description": "The file stable ids in that dataset", | ||
"examples": [ | ||
[ | ||
"anyidentifier" | ||
] | ||
], | ||
"additionalItems": false, | ||
"items": { | ||
"type": "string", | ||
"pattern": "^\\S+$" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"title": "JSON schema for Local EGA inbox remove message interface", | ||
"$id": "https://github.com/EGA-archive/LocalEGA/tree/master/schemas/inbox-remove.json", | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"type": "object", | ||
"required": [ | ||
"user", | ||
"filepath", | ||
"operation" | ||
], | ||
"additionalProperties": true, | ||
"properties": { | ||
"user": { | ||
"$id": "#/properties/user", | ||
"type": "string", | ||
"title": "The username", | ||
"description": "The username", | ||
"examples": [ | ||
"[email protected]" | ||
] | ||
}, | ||
"filepath": { | ||
"$id": "#/properties/filepath", | ||
"type": "string", | ||
"title": "The unique identifier to the file location", | ||
"description": "The unique identifier to the file location", | ||
"examples": [ | ||
"/ega/inbox/[email protected]/the-file.c4gh" | ||
] | ||
}, | ||
"operation": { | ||
"$id": "#/properties/operation", | ||
"type": "string", | ||
"const": "remove", | ||
"title": "The operation type", | ||
"description": "The operation type" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"title": "JSON schema for Local EGA inbox rename message interface", | ||
"$id": "https://github.com/EGA-archive/LocalEGA/tree/master/schemas/inbox-rename.json", | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"type": "object", | ||
"required": [ | ||
"user", | ||
"filepath", | ||
"oldpath", | ||
"operation" | ||
], | ||
"additionalProperties": true, | ||
"properties": { | ||
"user": { | ||
"$id": "#/properties/user", | ||
"type": "string", | ||
"title": "The username", | ||
"description": "The username", | ||
"examples": [ | ||
"[email protected]" | ||
] | ||
}, | ||
"filepath": { | ||
"$id": "#/properties/filepath", | ||
"type": "string", | ||
"title": "The new filepath", | ||
"description": "The new filepath", | ||
"examples": [ | ||
"/ega/inbox/[email protected]/the-file.c4gh" | ||
] | ||
}, | ||
"oldpath": { | ||
"$id": "#/properties/oldpath", | ||
"type": "string", | ||
"title": "The old filepath", | ||
"description": "The old filepath", | ||
"examples": [ | ||
"/ega/inbox/[email protected]/the-old-file.c4gh" | ||
] | ||
}, | ||
"operation": { | ||
"$id": "#/properties/operation", | ||
"type": "string", | ||
"const": "rename", | ||
"title": "The operation type", | ||
"description": "The operation type" | ||
} | ||
} | ||
} |
Oops, something went wrong.