Skip to content

Commit

Permalink
Fixing format of unit test schema files
Browse files Browse the repository at this point in the history
  • Loading branch information
kellrott committed Jan 25, 2025
1 parent a04b8f9 commit c0ef592
Show file tree
Hide file tree
Showing 24 changed files with 92 additions and 46 deletions.
6 changes: 4 additions & 2 deletions test/resources/schemas/aliquot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ links:
- outbound
multiplicity:
- has_one
backref: aliquots
backref:
- aliquots
- rel: projects
href: project/{id}
templateRequired:
Expand All @@ -38,7 +39,8 @@ links:
- outbound
multiplicity:
- has_many
backref: aliquots
backref:
- aliquots
properties:
id:
type: string
Expand Down
12 changes: 8 additions & 4 deletions test/resources/schemas/case.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ links:
- outbound
multiplicity:
- has_many
backref: cases
backref:
- cases
- rel: projects
href: project/{id}
templateRequired:
Expand All @@ -38,7 +39,8 @@ links:
- outbound
multiplicity:
- has_many
backref: cases
backref:
- cases
- rel: phenotypes
href: phenotype/{id}
templateRequired:
Expand All @@ -52,7 +54,8 @@ links:
- outbound
multiplicity:
- has_many
backref: cases
backref:
- cases
- rel: same_as
href: case/{id}
templateRequired:
Expand All @@ -66,7 +69,8 @@ links:
- outbound
multiplicity:
- has_many
backref: cases
backref:
- cases
properties:
case_id:
type: string
Expand Down
3 changes: 2 additions & 1 deletion test/resources/schemas/command.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ links:
- outbound
multiplicity:
- has_many
backref: command
backref:
- command
properties:
md5:
type: string
Expand Down
3 changes: 2 additions & 1 deletion test/resources/schemas/compound.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ links:
- outbound
multiplicity:
- has_many
backref: compounds
backref:
- compounds
properties:
id:
type: string
Expand Down
3 changes: 2 additions & 1 deletion test/resources/schemas/copy_number_alteration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ links:
- outbound
multiplicity:
- has_one
backref: copy_number_alterations
backref:
- copy_number_alterations
properties:
method:
type: string
Expand Down
6 changes: 4 additions & 2 deletions test/resources/schemas/drug_response.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ links:
- outbound
multiplicity:
- has_many
backref: drug_responses
backref:
- drug_responses
- rel: aliquot
href: aliquot/{id}
templateRequired:
Expand All @@ -37,7 +38,8 @@ links:
- outbound
multiplicity:
- has_one
backref: drug_response
backref:
- drug_response
properties:
id:
type: string
Expand Down
3 changes: 2 additions & 1 deletion test/resources/schemas/exon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ links:
- outbound
multiplicity:
- has_many
backref: exons
backref:
- exons
properties:
id:
type: string
Expand Down
3 changes: 2 additions & 1 deletion test/resources/schemas/gene_expression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ links:
- outbound
multiplicity:
- has_one
backref: gene_expressions
backref:
- gene_expressions
properties:
id:
type: string
Expand Down
6 changes: 4 additions & 2 deletions test/resources/schemas/gene_ontology_term.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ links:
- outbound
multiplicity:
- has_many
backref: gene_ontology_terms
backref:
- gene_ontology_terms
- rel: child_terms
href: gene_ontology_term/{id}
templateRequired:
Expand All @@ -43,7 +44,8 @@ links:
- outbound
multiplicity:
- has_many
backref: gene_ontology_terms
backref:
- gene_ontology_terms
properties:
go_id:
type: string
Expand Down
18 changes: 12 additions & 6 deletions test/resources/schemas/gene_phenotype_association.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ links:
- outbound
multiplicity:
- has_many
backref: gene_phenotype_associations
backref:
- gene_phenotype_associations
- rel: alleles
href: allele/{id}
templateRequired:
Expand All @@ -38,7 +39,8 @@ links:
- outbound
multiplicity:
- has_many
backref: gene_phenotype_associations
backref:
- gene_phenotype_associations
- rel: genes
href: gene/{id}
templateRequired:
Expand All @@ -52,7 +54,8 @@ links:
- outbound
multiplicity:
- has_many
backref: gene_phenotype_associations
backref:
- gene_phenotype_associations
- rel: genomic_features
href: genomic_feature/{id}
templateRequired:
Expand All @@ -66,7 +69,8 @@ links:
- outbound
multiplicity:
- has_many
backref: gene_phenotype_associations
backref:
- gene_phenotype_associations
- rel: publications
href: publication/{id}
templateRequired:
Expand All @@ -80,7 +84,8 @@ links:
- outbound
multiplicity:
- has_many
backref: gene_phenotype_associations
backref:
- gene_phenotype_associations
- rel: phenotypes
href: phenotype/{id}
templateRequired:
Expand All @@ -94,7 +99,8 @@ links:
- outbound
multiplicity:
- has_many
backref: gene_phenotype_associations
backref:
- gene_phenotype_associations
properties:
id:
type: string
Expand Down
6 changes: 4 additions & 2 deletions test/resources/schemas/gene_set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ links:
- outbound
multiplicity:
- has_many
backref: gene_sets
backref:
- gene_sets
- rel: publications
href: publication/{id}
templateRequired:
Expand All @@ -37,7 +38,8 @@ links:
- outbound
multiplicity:
- has_many
backref: gene_sets
backref:
- gene_sets
properties:
id:
type: string
Expand Down
3 changes: 2 additions & 1 deletion test/resources/schemas/genomic_feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ links:
- outbound
multiplicity:
- has_many
backref: genomic_features
backref:
- genomic_features
properties:
annotations:
type:
Expand Down
6 changes: 4 additions & 2 deletions test/resources/schemas/interaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ links:
- outbound
multiplicity:
- has_many
backref: interactions
backref:
- interactions
- rel: publications
href: publication/{id}
templateRequired:
Expand All @@ -39,7 +40,8 @@ links:
- outbound
multiplicity:
- has_many
backref: interactions
backref:
- interactions
- rel: interaction_input
href: interactioninpu/{id}
templateRequired:
Expand Down
3 changes: 2 additions & 1 deletion test/resources/schemas/methylation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ links:
- outbound
multiplicity:
- has_one
backref: methylations
backref:
- methylations
properties:
method:
type: string
Expand Down
3 changes: 2 additions & 1 deletion test/resources/schemas/methylation_probe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ links:
- outbound
multiplicity:
- has_one
backref: methylation_probes
backref:
- methylation_probes
properties:
probe_id:
type: string
Expand Down
9 changes: 6 additions & 3 deletions test/resources/schemas/pathway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ links:
- outbound
multiplicity:
- has_many
backref: pathways
backref:
- pathways
- rel: interactions
href: interaction/{id}
templateRequired:
Expand All @@ -37,7 +38,8 @@ links:
- outbound
multiplicity:
- has_many
backref: pathways
backref:
- pathways
- rel: sub_pathways
href: pathway/{id}
templateRequired:
Expand All @@ -51,7 +53,8 @@ links:
- outbound
multiplicity:
- has_many
backref: pathways
backref:
- pathways
- rel: publications
href: publication/{id}
templateRequired:
Expand Down
3 changes: 2 additions & 1 deletion test/resources/schemas/phenotype.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ links:
- outbound
multiplicity:
- has_many
backref: phenotypes
backref:
- phenotypes
properties:
id:
type: string
Expand Down
3 changes: 2 additions & 1 deletion test/resources/schemas/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ links:
- outbound
multiplicity:
- has_many
backref: projects
backref:
- projects
properties:
id:
type: string
Expand Down
15 changes: 10 additions & 5 deletions test/resources/schemas/protein_compound_association.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ links:
- outbound
multiplicity:
- has_many
backref: protein_compound_associations
backref:
- protein_compound_associations
- rel: genes
href: gene/{id}
templateRequired:
Expand All @@ -35,7 +36,8 @@ links:
- outbound
multiplicity:
- has_many
backref: protein_compound_associations
backref:
- protein_compound_associations
- rel: compound
href: compound/{id}
templateRequired:
Expand All @@ -49,7 +51,8 @@ links:
- outbound
multiplicity:
- has_one
backref: protein_compound_associations
backref:
- protein_compound_associations
- rel: publications
href: publication/{id}
templateRequired:
Expand All @@ -63,7 +66,8 @@ links:
- outbound
multiplicity:
- has_many
backref: protein_compound_associations
backref:
- protein_compound_associations
- rel: protein_structures
href: protein_structure/{id}
templateRequired:
Expand All @@ -77,7 +81,8 @@ links:
- outbound
multiplicity:
- has_many
backref: protein_compound_associations
backref:
- protein_compound_associations
properties:
id:
type: string
Expand Down
3 changes: 2 additions & 1 deletion test/resources/schemas/protein_structure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ links:
- outbound
multiplicity:
- has_one
backref: protein_structures
backref:
- protein_structures
properties:
id:
type: string
Expand Down
Loading

0 comments on commit c0ef592

Please sign in to comment.