Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Davenport committed Oct 16, 2024
1 parent 1c076c3 commit 31c329b
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 11 deletions.
2 changes: 1 addition & 1 deletion java/core/src/main/resources/ont-model-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
namespace: brapi.org
namespace: http://brapi.org
31 changes: 26 additions & 5 deletions java/core/src/test/resources/openapi-test-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"descriptionFormat": "Add new %s to database",
"generateFor": {
"AlleleMatrix": false,
"BreedingMethod": false,
"Call": false,
"CallSet": false,
"Event": false,
Expand All @@ -93,6 +94,7 @@
"descriptionFormat": "Update the details for an existing %s",
"generateFor": {
"AlleleMatrix": false,
"BreedingMethod": false,
"Call": false,
"CallSet": false,
"Cross": false,
Expand All @@ -119,11 +121,30 @@
"VariantSet": false
}
},
"ids": {
"nameFormat": "%sDbId",
"parameterFor": {
"GermplasmAttribute": "attributeDbId",
"GermplasmAttributeValue": "attributeValueDbId"
"properties": {
"id": {
"nameFormat": "%sDbId",
"link": true,
"propertyFor": {
"GermplasmAttribute": "attributeDbId",
"GermplasmAttributeValue": "attributeValueDbId"
}
},
"name": {
"nameFormat": "%sName",
"link": true,
"propertyFor": {
"GermplasmAttribute": "attributeName",
"GermplasmAttributeValue": "attributeValueName"
}
},
"pui": {
"nameFormat": "%sPUI",
"link": true,
"propertyFor": {
"GermplasmAttribute": "attributePUI",
"GermplasmAttributeValue": "attributeValuePUI"
}
}
}
}
26 changes: 21 additions & 5 deletions java/core/src/test/resources/openapi-test-options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ post:
descriptionFormat: Add new %s to database
generateFor:
AlleleMatrix: false
BreedingMethod: false
Call: false
CallSet: false
Event: false
Expand All @@ -90,6 +91,7 @@ put:
descriptionFormat: Update the details for an existing %s
generateFor:
AlleleMatrix: false
BreedingMethod: false
Call: false
CallSet: false
Cross: false
Expand All @@ -112,8 +114,22 @@ delete:
Reference: false
Variant: false
VariantSet: false
ids:
nameFormat: "%sDbId"
parameterFor:
GermplasmAttribute: attributeDbId
GermplasmAttributeValue: attributeValueDbId
properties:
id:
nameFormat: "%sDbId"
link: true
propertyFor:
GermplasmAttribute: attributeDbId
GermplasmAttributeValue: attributeValueDbId
name:
nameFormat: "%sName"
link: true
propertyFor:
GermplasmAttribute: attributeName
GermplasmAttributeValue: attributeValueName
pui:
nameFormat: "%sPUI"
link: true
propertyFor:
GermplasmAttribute: attributePUI
GermplasmAttributeValue: attributeValuePUI

0 comments on commit 31c329b

Please sign in to comment.