Skip to content

Commit

Permalink
extra properties in CustomFilter should be objects
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfk committed Feb 3, 2023
1 parent 381e3ba commit cf21fae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion framework/json/requests/filteringTerms.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"definitions": {
"AlphanumericFilter": {
"additionalProperties": false,
"description": "Filter results based on operators and values applied to alphanumeric fields.",
"properties": {
"id": {
Expand Down Expand Up @@ -43,6 +43,9 @@
"type": "object"
},
"CustomFilter": {
"additionalProperties": {
"type": "object"
},
"description": "Filter results to include records that contain a custom term defined by this Beacon.",
"properties": {
"id": {
Expand Down Expand Up @@ -75,6 +78,7 @@
]
},
"OntologyFilter": {
"additionalProperties": false,
"description": "Filter results to include records that contain a specific ontology term.",
"properties": {
"id": {
Expand Down
5 changes: 4 additions & 1 deletion framework/src/requests/filteringTerms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ definitions:
type: string
description: The entry type to which the filter applies
example: biosamples
additionalProperties: false
AlphanumericFilter:
description: Filter results based on operators and values applied to alphanumeric
fields.
Expand Down Expand Up @@ -82,6 +83,7 @@ definitions:
type: string
description: The entry type to which the filter applies
example: biosamples
additionalProperties: false
CustomFilter:
type: object
description: Filter results to include records that contain a custom term defined
Expand All @@ -97,4 +99,5 @@ definitions:
type: string
description: The entry type to which the filter applies
example: biosamples
additionalProperties: true
additionalProperties:
type: object

0 comments on commit cf21fae

Please sign in to comment.