From e5759162b348cf63c3181f13d0119caf95aa9af5 Mon Sep 17 00:00:00 2001 From: Eric Deutsch Date: Mon, 6 Nov 2023 13:24:03 -0800 Subject: [PATCH 1/3] Clarify Analysis --- TranslatorReasonerAPI.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/TranslatorReasonerAPI.yaml b/TranslatorReasonerAPI.yaml index 436f833f..3271bea6 100644 --- a/TranslatorReasonerAPI.yaml +++ b/TranslatorReasonerAPI.yaml @@ -645,8 +645,10 @@ components: generation of the score). properties: resource_id: - $ref: '#/components/schemas/CURIE' + oneOf: + - $ref: '#/components/schemas/CURIE' description: The id of the resource generating this Analysis + nullable: false score: type: number format: float @@ -669,6 +671,8 @@ components: type: array items: $ref: '#/components/schemas/EdgeBinding' + minItems: 1 + nullable: false support_graphs: type: array description: >- @@ -679,6 +683,7 @@ components: nullable: true items: type: string + minItems: 1 scoring_method: type: string description: >- @@ -691,6 +696,7 @@ components: The attributes of this particular Analysis. items: $ref: '#/components/schemas/Attribute' + minItems: 1 nullable: true additionalProperties: true required: From 31b5acfd5294eb1ad7c52dd77236d18543840212 Mon Sep 17 00:00:00 2001 From: Eric Deutsch Date: Fri, 15 Dec 2023 12:02:52 -0800 Subject: [PATCH 2/3] Clarify Analysis --- TranslatorReasonerAPI.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TranslatorReasonerAPI.yaml b/TranslatorReasonerAPI.yaml index 3271bea6..dab0c0a0 100644 --- a/TranslatorReasonerAPI.yaml +++ b/TranslatorReasonerAPI.yaml @@ -680,10 +680,10 @@ components: that supported the analysis of a Result as performed by the reasoning service. Each item in the list is the key of a single Auxiliary Graph. - nullable: true + nullable: false items: type: string - minItems: 1 + minItems: 0 scoring_method: type: string description: >- @@ -696,8 +696,8 @@ components: The attributes of this particular Analysis. items: $ref: '#/components/schemas/Attribute' - minItems: 1 - nullable: true + minItems: 0 + nullable: false additionalProperties: true required: - resource_id From 9cf56cca1e7237f7877fa13ef20301bdabaddfb7 Mon Sep 17 00:00:00 2001 From: Eric Deutsch Date: Thu, 4 Jan 2024 10:38:19 -0800 Subject: [PATCH 3/3] add required fields --- TranslatorReasonerAPI.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TranslatorReasonerAPI.yaml b/TranslatorReasonerAPI.yaml index dab0c0a0..ae99dd26 100644 --- a/TranslatorReasonerAPI.yaml +++ b/TranslatorReasonerAPI.yaml @@ -702,6 +702,8 @@ components: required: - resource_id - edge_bindings + - support_graphs + - attributes EdgeBinding: type: object description: >-