Skip to content

Commit

Permalink
Merge pull request #14 from uc-cdis/fix/schema
Browse files Browse the repository at this point in the history
fix(schema): add required fields
  • Loading branch information
philloooo authored Apr 13, 2018
2 parents f042912 + 2ea94de commit afe22e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dictionaryutils/schema_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ def load_project_specific_schema():
projects = {}
if os.path.exists(project_path):
for fp in os.listdir(project_path):
projects[fp.replace('.yaml', '')] = load_yaml_schema(fp)
path = os.path.join(project_path, fp)
projects[fp.replace('.yaml', '')] = load_yaml_schema(path)
return projects


CUR_DIR = os.path.dirname(SCHEMA_DIR)

DATA_DIR = os.path.join(CUR_DIR, 'examples')
projects = load_project_specific_schema()


def merge_schemas(a, b, path=None):
Expand Down
2 changes: 2 additions & 0 deletions dictionaryutils/schemas/data_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ id: "data_release"
title: Data Release
type: object
namespace: http://gdc.nci.nih.gov
program: '*'
project: '*'
category: internal
description: >
Internal node to store different data releases.
Expand Down
2 changes: 2 additions & 0 deletions dictionaryutils/schemas/root.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ id: "root"
title: Root
type: object
program: '*'
project: '*'
root: '*'
category: internal
additionalProperties: false
Expand All @@ -15,6 +16,7 @@ systemProperties:

uniqueKeys:
- [id]
links: []

constraints: null

Expand Down

0 comments on commit afe22e1

Please sign in to comment.