From 7f0f518cfbd048a06e228d073e785915d5cc71d8 Mon Sep 17 00:00:00 2001 From: Gordon Krieger Date: Tue, 20 Aug 2024 12:33:09 -0400 Subject: [PATCH 1/2] add optional values field to response filtering terms --- .../sections/beaconFilteringTermsResults.json | 17 +++++++++++++++++ .../sections/beaconFilteringTermsResults.yaml | 13 +++++++++++++ 2 files changed, 30 insertions(+) diff --git a/framework/json/responses/sections/beaconFilteringTermsResults.json b/framework/json/responses/sections/beaconFilteringTermsResults.json index 1755fb58..f263928a 100644 --- a/framework/json/responses/sections/beaconFilteringTermsResults.json +++ b/framework/json/responses/sections/beaconFilteringTermsResults.json @@ -39,6 +39,23 @@ "items": { "type": "string" } + }, + "values": { + "description": "Optional list of possible values for alphanumeric filters", + "examples": [ + [ + "benign", + "likely benign", + "pathogenic" + ], + [ + "pathogenic" + ] + ], + "items": { + "type": "string" + }, + "type": "array" } }, "required": [ diff --git a/framework/src/responses/sections/beaconFilteringTermsResults.yaml b/framework/src/responses/sections/beaconFilteringTermsResults.yaml index 05748d8c..63d21c76 100644 --- a/framework/src/responses/sections/beaconFilteringTermsResults.yaml +++ b/framework/src/responses/sections/beaconFilteringTermsResults.yaml @@ -61,6 +61,19 @@ definitions: type: array items: type: string + values: + description: >- + Optional list of possible values for alphanumeric filters + examples: + - + - benign + - likely benign + - pathogenic + - + - pathogenic + type: array + items: + type: string Resource: type: object description: >- From 8381c5c225e984477879d918a7b25e7397c3e80f Mon Sep 17 00:00:00 2001 From: Gordon Krieger Date: Tue, 19 Nov 2024 15:56:31 -0500 Subject: [PATCH 2/2] add minItems to filteringTermsResults values field --- .../json/responses/sections/beaconFilteringTermsResults.json | 1 + .../src/responses/sections/beaconFilteringTermsResults.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/framework/json/responses/sections/beaconFilteringTermsResults.json b/framework/json/responses/sections/beaconFilteringTermsResults.json index f263928a..6f1a3480 100644 --- a/framework/json/responses/sections/beaconFilteringTermsResults.json +++ b/framework/json/responses/sections/beaconFilteringTermsResults.json @@ -55,6 +55,7 @@ "items": { "type": "string" }, + "minItems": 1, "type": "array" } }, diff --git a/framework/src/responses/sections/beaconFilteringTermsResults.yaml b/framework/src/responses/sections/beaconFilteringTermsResults.yaml index 63d21c76..1607ba58 100644 --- a/framework/src/responses/sections/beaconFilteringTermsResults.yaml +++ b/framework/src/responses/sections/beaconFilteringTermsResults.yaml @@ -74,6 +74,7 @@ definitions: type: array items: type: string + minItems: 1 Resource: type: object description: >-