-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SIMSBIOHUB-374: BioHub Feature Submission Schema (#209)
* Submission Feature Migrations and Test Seeding Remove DB_SCHEMA usage in most places. Remove DB Views Add Mock test data seed (disabled by default)
- Loading branch information
Showing
43 changed files
with
2,071 additions
and
3,382 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
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
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,58 @@ | ||
export const BioHubDataSubmission = { | ||
title: 'BioHub Data Submission', | ||
type: 'object', | ||
required: ['id', 'type', 'features'], | ||
properties: { | ||
id: { | ||
title: 'Unique id of the submission', | ||
type: 'string' | ||
}, | ||
type: { | ||
type: 'string', | ||
enum: ['dataset'] | ||
}, | ||
properties: { | ||
title: 'Feature properties', | ||
type: 'object', | ||
properties: {} | ||
}, | ||
features: { | ||
type: 'array', | ||
items: { | ||
$ref: '#/$defs/Feature' | ||
} | ||
} | ||
}, | ||
$defs: { | ||
Feature: { | ||
title: 'BioHub Data Submission Feature', | ||
type: 'object', | ||
required: ['id', 'type', 'properties', 'features'], | ||
properties: { | ||
id: { | ||
title: 'Unique id of the feature', | ||
type: 'string' | ||
}, | ||
type: { | ||
title: 'Feature type', | ||
type: 'string' | ||
}, | ||
properties: { | ||
title: 'Feature properties', | ||
type: 'object', | ||
properties: {} | ||
}, | ||
features: { | ||
title: 'Feature child features', | ||
type: 'array', | ||
items: { | ||
$ref: '#/$defs/Feature' | ||
} | ||
} | ||
}, | ||
additionalProperties: false | ||
}, | ||
additionalProperties: false | ||
}, | ||
additionalProperties: false | ||
}; |
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
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
Oops, something went wrong.