From 186617623a100e576a3de280a665f6d5cb31a5b1 Mon Sep 17 00:00:00 2001 From: josuh Date: Wed, 3 Jun 2020 15:26:46 -0700 Subject: [PATCH 1/3] Changing aspects/opinions to optional properties from required properties --- .../preview/v3.1-preview.1/TextAnalytics.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json b/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json index 675210bab169..48e12d063e6d 100644 --- a/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json +++ b/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json @@ -734,9 +734,7 @@ "sentiment", "confidenceScores", "offset", - "length", - "aspects", - "opinions" + "length" ], "properties": { "text": { @@ -772,14 +770,14 @@ }, "aspects": { "type": "array", - "description": "The array of aspect object for the sentence.", + "description": "(Optional) The array of aspect object for the sentence.", "items": { "$ref": "#/definitions/SentenceAspect" } }, "opinions": { "type": "array", - "description": "The array of opinion object for the sentence.", + "description": "(Optional) The array of opinion object for the sentence.", "items": { "$ref": "#/definitions/SentenceOpinion" } From 2c569adc3efaf0fe676c926379c9e90a670eab06 Mon Sep 17 00:00:00 2001 From: josuh Date: Wed, 3 Jun 2020 15:58:26 -0700 Subject: [PATCH 2/3] removing (Optional) description --- .../TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json b/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json index 48e12d063e6d..0ff15eff3ba9 100644 --- a/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json +++ b/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/TextAnalytics.json @@ -770,14 +770,14 @@ }, "aspects": { "type": "array", - "description": "(Optional) The array of aspect object for the sentence.", + "description": "The array of aspect object for the sentence.", "items": { "$ref": "#/definitions/SentenceAspect" } }, "opinions": { "type": "array", - "description": "(Optional) The array of opinion object for the sentence.", + "description": "The array of opinion object for the sentence.", "items": { "$ref": "#/definitions/SentenceOpinion" } From ba54af2d141f168743a1629cd8ab2201c562dc8c Mon Sep 17 00:00:00 2001 From: josuh Date: Thu, 11 Jun 2020 16:04:31 -0700 Subject: [PATCH 3/3] Changing aspect example results regarting to json pointer nuget pkg format --- .../examples/SuccessfulSentimentRequest.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/examples/SuccessfulSentimentRequest.json b/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/examples/SuccessfulSentimentRequest.json index ad3fc48d2cae..54f4b2edc948 100644 --- a/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/examples/SuccessfulSentimentRequest.json +++ b/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.1/examples/SuccessfulSentimentRequest.json @@ -54,7 +54,7 @@ "relations": [ { "relationType": "opinion", - "ref": "#/documents/0/sentences/0/opinions/0" + "ref": "/Documents/0/Sentences/0/Opinions/0" } ] } @@ -96,7 +96,7 @@ "relations": [ { "relationType": "opinion", - "ref": "#/documents/0/sentences/1/opinions/0" + "ref": "/Documents/0/Sentences/1/Opinions/0" } ] }, @@ -112,7 +112,7 @@ "relations": [ { "relationType": "opinion", - "ref": "#/documents/0/sentences/1/opinions/0" + "ref": "/Documents/0/Sentences/1/Opinions/0" } ] } @@ -154,7 +154,7 @@ "relations": [ { "relationType": "opinion", - "ref": "#/documents/0/sentences/2/opinions/0" + "ref": "/Documents/0/Sentences/2/Opinions/0" } ] } @@ -208,7 +208,7 @@ "relations": [ { "relationType": "opinion", - "ref": "#/documents/1/sentences/0/opinions/0" + "ref": "/Documents/1/Sentences/0/Opinions/0" } ] } @@ -250,7 +250,7 @@ "relations": [ { "relationType": "opinion", - "ref": "#/documents/1/sentences/1/opinions/0" + "ref": "/Documents/1/Sentences/1/Opinions/0" } ] } @@ -292,7 +292,7 @@ "relations": [ { "relationType": "opinion", - "ref": "#/documents/1/sentences/2/opinions/0" + "ref": "/Documents/1/Sentences/2/Opinions/0" } ] }