Skip to content

Commit

Permalink
Revert "Undo commit for filtering terms response"
Browse files Browse the repository at this point in the history
This reverts commit df401fc.
  • Loading branch information
costero-e committed Oct 8, 2024
1 parent df401fc commit b9b6646
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
20 changes: 10 additions & 10 deletions framework/json/requests/filteringTerms.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"AlphanumericFilter": {
"description": "Filter results based on operators and values applied to alphanumeric fields.",
"properties": {
"id": {
"description": "Field identfier to be queried.",
"example": "ageOfOnset",
"type": "string"
},
"id": {
"description": "Field identfier to be queried.",
"example": "ageOfOnset",
"type": "string"
},
"operator": {
"default": "=",
"description": "Defines how the value relates to the field `id`.",
Expand Down Expand Up @@ -50,11 +50,11 @@
"example": "demographic.ethnicity:asian",
"type": "string"
},
"scope": {
"description": "The entry type to which the filter applies",
"example": "individuals",
"type": "string"
}
"scope": {
"description": "The entry type to which the filter applies",
"example": "individuals",
"type": "string"
}
},
"required": [
"id"
Expand Down
9 changes: 5 additions & 4 deletions framework/src/requests/filteringTerms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ definitions:
id:
type: string
description: Field identfier to be queried.
example: age
example: ageOfOnset
operator:
type: string
enum:
Expand All @@ -74,14 +74,15 @@ definitions:
example: '>'
value:
type: string
description: Alphanumeric search term to be used within the query which can
description: >-
Alphanumeric search term to be used within the query which can
contain wildcard characters (%) to denote any number of unknown characters. Values
can be assocatied with units if applicable.
example: P70Y
scope:
type: string
description: The entry type to which the filter applies
example: biosamples
example: individuals
CustomFilter:
type: object
description: Filter results to include records that contain a custom term defined
Expand All @@ -96,5 +97,5 @@ definitions:
scope:
type: string
description: The entry type to which the filter applies
example: biosamples
example: individuals
additionalProperties: true

0 comments on commit b9b6646

Please sign in to comment.