Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f411362
Update generate-schema.yml
BrapiCoordinatorSelby Jul 8, 2025
674daaa
Apply automatic changes
BrapiCoordinatorSelby Jul 9, 2025
2be77ab
Update generate-schema.yml
BrapiCoordinatorSelby Jul 9, 2025
ccc3cb6
Apply automatic changes
BrapiCoordinatorSelby Jul 9, 2025
9e989a5
Apply automatic changes
BrapiCoordinatorSelby Jul 9, 2025
3c07c9f
Update generate-schema.yml
BrapiCoordinatorSelby Jul 9, 2025
fa6597a
Apply automatic changes
BrapiCoordinatorSelby Jul 9, 2025
92625ae
Update generate-schema.yml
BrapiCoordinatorSelby Jul 9, 2025
44475a0
Apply automatic changes
BrapiCoordinatorSelby Jul 9, 2025
412e444
Update generate-schema.yml
BrapiCoordinatorSelby Jul 9, 2025
0186ed3
Update generate-schema.yml
BrapiCoordinatorSelby Jul 9, 2025
fa2e1f5
Apply automatic changes
BrapiCoordinatorSelby Jul 9, 2025
f008eff
Update generate-schema.yml
BrapiCoordinatorSelby Jul 9, 2025
3f7438f
Apply automatic changes
BrapiCoordinatorSelby Jul 9, 2025
d65975d
Apply automatic changes
BrapiCoordinatorSelby Jul 9, 2025
f02e698
Apply automatic changes
BrapiCoordinatorSelby Jul 9, 2025
97803e3
Update generate-schema.yml
BrapiCoordinatorSelby Jul 9, 2025
e7bf973
Apply automatic changes
BrapiCoordinatorSelby Jul 9, 2025
851d376
Apply automatic changes
BrapiCoordinatorSelby Jul 9, 2025
4da4b11
Update generate-schema.yml
BrapiCoordinatorSelby Jul 9, 2025
3796220
Apply automatic changes
BrapiCoordinatorSelby Jul 9, 2025
3523cbc
Bump readthedocs-sphinx-search from 0.3.1 to 0.3.2 in /docs (#643)
dependabot[bot] Jul 24, 2025
59d4bb8
Apply automatic changes
BrapiCoordinatorSelby Jul 24, 2025
581dacd
646 update gihub action to generate openapi per module in yaml format…
guydavenport Nov 14, 2025
13838bb
Apply automatic changes
BrapiCoordinatorSelby Nov 14, 2025
9a99fbb
copied descriptions from V2.2 (#652)
guydavenport Nov 18, 2025
e1c956b
Apply automatic changes
BrapiCoordinatorSelby Nov 18, 2025
00e2372
Added missing descriptions and some minor changes in Schema (#654)
guydavenport Nov 18, 2025
5895b8c
655 only commit generated files when branch name matches a release (#…
guydavenport Nov 20, 2025
b1b1981
small commit to test CI build
BrapiCoordinatorSelby Nov 20, 2025
515cbeb
Update generate-schema.yml
BrapiCoordinatorSelby Nov 20, 2025
b1a6113
Update generate-schema.yml
BrapiCoordinatorSelby Nov 20, 2025
2cf9f08
Update generate-schema.yml
BrapiCoordinatorSelby Nov 20, 2025
daa9f61
Update generate-schema.yml
BrapiCoordinatorSelby Nov 20, 2025
878b607
Update generate-schema.yml
BrapiCoordinatorSelby Nov 20, 2025
b3b8a55
Update generate-schema.yml
BrapiCoordinatorSelby Nov 20, 2025
ab36bc7
Update generate-schema.yml
BrapiCoordinatorSelby Nov 20, 2025
b4e2f74
Update generate-schema.yml
BrapiCoordinatorSelby Nov 20, 2025
5b4eef8
Update generate-schema.yml
BrapiCoordinatorSelby Nov 20, 2025
1583786
Update generate-schema.yml
BrapiCoordinatorSelby Nov 20, 2025
f8339a7
Update generate-schema.yml
BrapiCoordinatorSelby Nov 20, 2025
3b2df27
Apply automatic changes
BrapiCoordinatorSelby Nov 20, 2025
2db9a19
used co-pliot to copy examples from yaml files to json schema
Dec 24, 2025
e4a0b7a
used co-pliot to copy examples from yaml files to json schema
Dec 27, 2025
e1e1581
use examples over example when there is more than one example.
Jan 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 43 additions & 3 deletions .github/workflows/generate-schema.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,52 @@
name: Java CI with Gradle
name: Build specifications, schemas and comparisions

on:
push:
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
outputs:
skip_job: ${{ steps.skip.outputs.skip_job }}
skip_commit: ${{ steps.check-tag.outputs.skip_commit }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check last commit message
id: commit-message
run: |
echo "COMMIT_MESSAGE=$(git log -1 --pretty=format:'%s')" >> "$GITHUB_ENV"
- id: skip
name: Skip if automated push
if: contains(env.COMMIT_MESSAGE, 'Apply automatic changes')
run: |
echo "Automated commit detected - skipping job"
echo "skip_job=true" >> "$GITHUB_OUTPUT"
- name: Check Branch with Regex
id: check-tag
run: |
regex="^refs/heads/brapi-V[0-9]+\.[0-9]+$"
if [[ "${{ github.ref }}" =~ $regex ]]; then
echo "skip_commit=false" >> "$GITHUB_OUTPUT"
echo "Release branch - WILL commit of generated files"
else
echo "skip_commit=true" >> "$GITHUB_OUTPUT"
echo "Normal branch - Will NOT commit of generated files"
fi
generate:
runs-on: ubuntu-latest
needs: check
if: needs.check.outputs.skip_job != 'true'
steps:
- uses: actions/checkout@v4
- name: debug
run: |
echo ${{ needs.check.outputs.skip_job }}
echo ${{ needs.check.outputs.skip_commit }}
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Set up Docker Compose
uses: docker/setup-compose-action@v1
- name: Build and run the Docker image
Expand Down Expand Up @@ -36,4 +75,5 @@ jobs:
- name: Compare OpenAPI
working-directory: ./generator
run: ./gradlew compareAll
- uses: stefanzweifel/git-auto-commit-action@v5
- if: needs.check.outputs.skip_commit == 'false'
uses: stefanzweifel/git-auto-commit-action@v5
11 changes: 9 additions & 2 deletions Specification/BrAPI-Schema/BrAPI-Common/AdditionalInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@
"$defs": {
"AdditionalInfo": {
"additionalProperties": {
"type": "string"
"description": "A free space containing any additional information related to a particular object.",
"type": [
"null",
"string"
]
},
"description": "A free space containing any additional information related to a particular object. A data source may provide any JSON object, unrestricted by the BrAPI specification.",
"title": "AdditionalInfo",
"type": "object"
"type": [
"null",
"object"
]
}
},
"$id": "https://brapi.org/Specification/BrAPI-Schema/Components/Common/AdditionalInfo.json",
Expand Down
1 change: 1 addition & 0 deletions Specification/BrAPI-Schema/BrAPI-Common/OntologyTerm.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
}
},
"title": "OntologyTerm",
"description": "A pointer to an ontology used by a genomic reference",
"type": "object",
"brapi-metadata": {
"primaryModel": false
Expand Down
31 changes: 21 additions & 10 deletions Specification/BrAPI-Schema/BrAPI-Common/Variable.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"type": [
"null",
"string"
]
],
"example": "Maize"
},
"contextOfUse": {
"description": "Indication of how trait is routinely used. (examples: [\"Trial evaluation\", \"Nursery evaluation\"])",
Expand All @@ -22,22 +23,25 @@
"type": [
"null",
"array"
]
],
"examples": ["Trial evaluation", "Nursery evaluation"]
},
"defaultValue": {
"description": "Variable default value. (examples: \"red\", \"2.3\", etc.)",
"type": [
"null",
"string"
]
],
"example": "2.0"
},
"documentationURL": {
"description": "A URL to the human readable documentation of an object",
"format": "uri",
"type": [
"null",
"string"
]
],
"example": "https://wiki.brapi.org/documentation.html"
},
"externalReferences": {
"description": "An array of external reference ids. These are references to this piece of data in an external system. Could be a simple string or a URI.",
Expand All @@ -57,21 +61,24 @@
"type": [
"null",
"string"
]
],
"example": "flowering"
},
"institution": {
"description": "Name of institution submitting the variable",
"type": [
"null",
"string"
]
],
"example": "The BrAPI Institute"
},
"language": {
"description": "2 letter ISO 639-1 code for the language of submission of the variable.",
"type": [
"null",
"string"
]
],
"example": "en"
},
"method": {
"description": "A description of the way an Observation should be collected. \n<br>For example, an ObservationVariable might be defined with a Trait of \"plant height\", a Scale of \"meters\", and a Method of \"tape measure\". This variable would be distinct from a variable with the Method \"estimation\" or \"drone image processing\". ",
Expand All @@ -93,14 +100,16 @@
"type": [
"null",
"string"
]
],
"example": "Dr. Bob Robertson"
},
"status": {
"description": "Variable status. (examples: \"recommended\", \"obsolete\", \"legacy\", etc.)",
"type": [
"null",
"string"
]
],
"example": "recommended"
},
"submissionTimestamp": {
"description": "Timestamp when the Variable was added (ISO 8601)",
Expand All @@ -118,7 +127,8 @@
"type": [
"null",
"array"
]
],
"examples": ["Maize Height", "Stalk Height", "Corn Height"]
},
"trait": {
"description": "A Trait describes what property is being observed. \n<br>For example, an ObservationVariable might be defined with a Trait of \"plant height\", a Scale of \"meters\", and a Method of \"tape measure\". This variable would be distinct from a variable with the Trait \"Leaf length\" or \"Flower height\". ",
Expand All @@ -132,6 +142,7 @@
"scale"
],
"title": "Variable",
"description": "A unique combination of Trait, Method, and Scale to define a clear context for an Observation.",
"type": "object",
"brapi-metadata": {
"interface": true
Expand Down
1 change: 1 addition & 0 deletions Specification/BrAPI-Schema/BrAPI-Core/Contact.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
],
"type": "object",
"title": "Contact",
"description": "A persons contact information",
"brapi-metadata": {
"primaryModel": false
}
Expand Down
2 changes: 2 additions & 0 deletions Specification/BrAPI-Schema/BrAPI-Core/DataLink.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$defs": {
"DataLink": {
"description": "A link to a data file associated with a study. Extra data could include notes, images, and reference data. Based on the MIAPPE V1.1 (DM-38) Data file description.",
"properties": {
"dataFormat": {
"description": "The structure of the data within a file. For example - VCF, table, image archive, multispectral image archives in EDAM ontology (used in Galaxy)\n\nMIAPPE V1.1 (DM-38) Data file description - Description of the format of the data file. May be a standard file format name, or a description of organization of the data in a tabular file.",
Expand Down Expand Up @@ -61,6 +62,7 @@
}
},
"title": "DataLink",
"description": "A link to extra data files associated with this study. Extra data could include notes, images, and reference data.",
"type": "object",
"brapi-metadata": {
"primaryModel": false
Expand Down
24 changes: 17 additions & 7 deletions Specification/BrAPI-Schema/BrAPI-Core/List.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"type": [
"null",
"array"
]
],
"examples": ["758a78c0", "2c78f9ee"]
},
"dateCreated": {
"description": "Timestamp when the entity was first created",
Expand Down Expand Up @@ -56,18 +57,21 @@
"type": [
"null",
"string"
]
],
"example": "This is a list of germplasm I would like to investigate next season"
},
"listName": {
"description": "Human readable name of a List",
"type": "string"
"type": "string",
"example": "MyGermplasm_Sept_2020"
},
"listOwnerName": {
"description": "Human readable name of a List Owner. (usually a user or person)",
"type": [
"null",
"string"
]
],
"example": "Bob Robertson"
},
"listOwnerPerson": {
"$ref": "Person.json#/$defs/Person",
Expand All @@ -80,14 +84,16 @@
"type": [
"null",
"integer"
]
],
"example": 53
},
"listSource": {
"description": "The description of where a List originated from",
"type": [
"null",
"string"
]
],
"example": "GeneBank Repository 1.3"
},
"listType": {
"description": "A flag to indicate the type of objects that are referenced in a List",
Expand All @@ -101,8 +107,12 @@
],
"title": "List",
"type": "object",
"description": "A List represents a collection of other BrAPI data objects. Typically these are custom lists generated by a user to keep track of interesting data. For example, a user might build a List of Germplasm that they have manually marked for further study.",
"brapi-metadata": {
"primaryModel": true
"primaryModel": true,
"subQuery": [
"data"
]
}
}
},
Expand Down
Loading