From 66b9e9cedfe74810551895476fb15d2d4e6d7121 Mon Sep 17 00:00:00 2001 From: Peter Selby Date: Wed, 5 Aug 2026 19:50:12 -0400 Subject: [PATCH] fixes issue #579 --- .../Requests/ObservationUnitRequest.json | 32 +++++ Specification/Generated/BrAPI-Core.yaml | 30 ++++ Specification/Generated/BrAPI-Genotyping.yaml | 30 ++++ Specification/Generated/BrAPI-Germplasm.yaml | 30 ++++ .../Generated/BrAPI-Phenotyping.yaml | 132 ++++++++++++++++++ 5 files changed, 254 insertions(+) diff --git a/Specification/BrAPI-Schema/Requests/ObservationUnitRequest.json b/Specification/BrAPI-Schema/Requests/ObservationUnitRequest.json index 7775df5d..cdef3d08 100644 --- a/Specification/BrAPI-Schema/Requests/ObservationUnitRequest.json +++ b/Specification/BrAPI-Schema/Requests/ObservationUnitRequest.json @@ -146,6 +146,38 @@ "Spring 2018", "Season A" ] + }, + "sortBy": { + "description": "Name of the field to sort by.", + "enum": [ + "observationUnitDbId", + "observationUnitName", + "observationUnitPUI", + "programDbId", + "programName", + "trialDbId", + "trialName", + "studyDbId", + "studyName", + "locationDbId", + "locationName", + "germplasmDbId", + "germplasmName", + "observationLevel", + "positionCoordinateX", + "positionCoordinateY" + ], + "type": ["null", "string"] + }, + "sortOrder": { + "description": "Sort order direction. Ascending/Descending.", + "enum": [ + "ASC", + "DESC", + "asc", + "desc" + ], + "type": ["null", "string"] } } } diff --git a/Specification/Generated/BrAPI-Core.yaml b/Specification/Generated/BrAPI-Core.yaml index b7bba715..e5cfc7f3 100644 --- a/Specification/Generated/BrAPI-Core.yaml +++ b/Specification/Generated/BrAPI-Core.yaml @@ -4889,6 +4889,36 @@ components: nullable: true items: type: string + sortBy: + type: string + description: Name of the field to sort by. + nullable: true + enum: + - observationUnitDbId + - observationUnitName + - observationUnitPUI + - programDbId + - programName + - trialDbId + - trialName + - studyDbId + - studyName + - locationDbId + - locationName + - germplasmDbId + - germplasmName + - observationLevel + - positionCoordinateX + - positionCoordinateY + sortOrder: + type: string + description: Sort order direction. Ascending/Descending. + nullable: true + enum: + - ASC + - DESC + - asc + - desc studyDbIds: type: array description: List of study identifiers to search for diff --git a/Specification/Generated/BrAPI-Genotyping.yaml b/Specification/Generated/BrAPI-Genotyping.yaml index 45311a02..735f345c 100644 --- a/Specification/Generated/BrAPI-Genotyping.yaml +++ b/Specification/Generated/BrAPI-Genotyping.yaml @@ -5432,6 +5432,36 @@ components: nullable: true items: type: string + sortBy: + type: string + description: Name of the field to sort by. + nullable: true + enum: + - observationUnitDbId + - observationUnitName + - observationUnitPUI + - programDbId + - programName + - trialDbId + - trialName + - studyDbId + - studyName + - locationDbId + - locationName + - germplasmDbId + - germplasmName + - observationLevel + - positionCoordinateX + - positionCoordinateY + sortOrder: + type: string + description: Sort order direction. Ascending/Descending. + nullable: true + enum: + - ASC + - DESC + - asc + - desc studyDbIds: type: array description: List of study identifiers to search for diff --git a/Specification/Generated/BrAPI-Germplasm.yaml b/Specification/Generated/BrAPI-Germplasm.yaml index f20bc271..f4bb83a0 100644 --- a/Specification/Generated/BrAPI-Germplasm.yaml +++ b/Specification/Generated/BrAPI-Germplasm.yaml @@ -6083,6 +6083,36 @@ components: nullable: true items: type: string + sortBy: + type: string + description: Name of the field to sort by. + nullable: true + enum: + - observationUnitDbId + - observationUnitName + - observationUnitPUI + - programDbId + - programName + - trialDbId + - trialName + - studyDbId + - studyName + - locationDbId + - locationName + - germplasmDbId + - germplasmName + - observationLevel + - positionCoordinateX + - positionCoordinateY + sortOrder: + type: string + description: Sort order direction. Ascending/Descending. + nullable: true + enum: + - ASC + - DESC + - asc + - desc studyDbIds: type: array description: List of study identifiers to search for diff --git a/Specification/Generated/BrAPI-Phenotyping.yaml b/Specification/Generated/BrAPI-Phenotyping.yaml index 1317e174..58b11d17 100644 --- a/Specification/Generated/BrAPI-Phenotyping.yaml +++ b/Specification/Generated/BrAPI-Phenotyping.yaml @@ -704,6 +704,42 @@ paths: required: false schema: type: string + - name: sortBy + in: query + description: Name of the field to sort by. + required: false + schema: + type: string + description: Name of the field to sort by. + enum: + - observationUnitDbId + - observationUnitName + - observationUnitPUI + - programDbId + - programName + - trialDbId + - trialName + - studyDbId + - studyName + - locationDbId + - locationName + - germplasmDbId + - germplasmName + - observationLevel + - positionCoordinateX + - positionCoordinateY + - name: sortOrder + in: query + description: Sort order direction. Ascending/Descending. + required: false + schema: + type: string + description: Sort order direction. Ascending/Descending. + enum: + - ASC + - DESC + - asc + - desc - $ref: "#/components/parameters/externalReferenceId" - $ref: "#/components/parameters/externalReferenceID" - $ref: "#/components/parameters/externalReferenceSource" @@ -2015,6 +2051,42 @@ paths: required: false schema: type: string + - name: sortBy + in: query + description: Name of the field to sort by. + required: false + schema: + type: string + description: Name of the field to sort by. + enum: + - observationUnitDbId + - observationUnitName + - observationUnitPUI + - programDbId + - programName + - trialDbId + - trialName + - studyDbId + - studyName + - locationDbId + - locationName + - germplasmDbId + - germplasmName + - observationLevel + - positionCoordinateX + - positionCoordinateY + - name: sortOrder + in: query + description: Sort order direction. Ascending/Descending. + required: false + schema: + type: string + description: Sort order direction. Ascending/Descending. + enum: + - ASC + - DESC + - asc + - desc - $ref: "#/components/parameters/acceptHeader" - $ref: "#/components/parameters/authorizationHeader" responses: @@ -5618,6 +5690,36 @@ components: nullable: true items: type: string + sortBy: + type: string + description: Name of the field to sort by. + nullable: true + enum: + - observationUnitDbId + - observationUnitName + - observationUnitPUI + - programDbId + - programName + - trialDbId + - trialName + - studyDbId + - studyName + - locationDbId + - locationName + - germplasmDbId + - germplasmName + - observationLevel + - positionCoordinateX + - positionCoordinateY + sortOrder: + type: string + description: Sort order direction. Ascending/Descending. + nullable: true + enum: + - ASC + - DESC + - asc + - desc studyDbIds: type: array description: List of study identifiers to search for @@ -5780,6 +5882,36 @@ components: nullable: true items: type: string + sortBy: + type: string + description: Name of the field to sort by. + nullable: true + enum: + - observationUnitDbId + - observationUnitName + - observationUnitPUI + - programDbId + - programName + - trialDbId + - trialName + - studyDbId + - studyName + - locationDbId + - locationName + - germplasmDbId + - germplasmName + - observationLevel + - positionCoordinateX + - positionCoordinateY + sortOrder: + type: string + description: Sort order direction. Ascending/Descending. + nullable: true + enum: + - ASC + - DESC + - asc + - desc studyDbIds: type: array description: List of study identifiers to search for