Skip to content

Commit

Permalink
Updating schema titles to sentence case. (#4799)
Browse files Browse the repository at this point in the history
* Changing schema titles to sentence case.

* Address PR comments.

* Second round of PR comments

* Add logging, fix syntax error

* Correct Assert
  • Loading branch information
mrivera-ms committed Oct 17, 2020
1 parent 8d20681 commit 4cace07
Show file tree
Hide file tree
Showing 78 changed files with 130 additions and 130 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
},
"applicationId": {
"$ref": "schema:#/definitions/stringExpression",
"title": "LUIS Application ID",
"title": "LUIS application id",
"description": "Application ID for your model from the LUIS service."
},
"version": {
"$ref": "schema:#/definitions/stringExpression",
"title": "LUIS Version",
"title": "LUIS version",
"description": "Optional version to target. If null then predictionOptions.Slot is used."
},
"endpoint": {
"$ref": "schema:#/definitions/stringExpression",
"title": "LUIS Endpoint",
"title": "LUIS endpoint",
"description": "Endpoint to use for LUIS service like https://westus.api.cognitive.microsoft.com."
},
"endpointKey": {
Expand All @@ -33,7 +33,7 @@
},
"externalEntityRecognizer": {
"$kind": "Microsoft.IRecognizer",
"title": "External Entity Recognizer",
"title": "External entity recognizer",
"description": "Entities recognized by this recognizer will be passed to LUIS as external entities."
},
"dynamicLists": {
Expand Down Expand Up @@ -102,7 +102,7 @@
},
"preferExternalEntities": {
"$ref": "schema:#/definitions/booleanExpression",
"title": "Prefer External Entities",
"title": "Prefer external entities",
"description": "True to prefer external entities to those generated by LUIS models."
},
"slot": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"$role": "implements(Microsoft.IRecognizer)",
"title": "Orchestrator Recognizer",
"title": "Orchestrator recognizer",
"description": "Orchestrator recognizer.",
"type": "object",
"properties": {
Expand All @@ -18,7 +18,7 @@
},
"snapshotPath": {
"$ref": "schema:#/definitions/stringExpression",
"title": "Endpoint Key",
"title": "Endpoint key",
"description": "SnapShot file path.",
"default": "=settings.orchestrator.shapshotpath"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"$role": "implements(Microsoft.IDialog)",
"title": "QnAMaker Dialog",
"title": "QnAMaker dialog",
"description": "Dialog which uses QnAMAker knowledge base to answer questions.",
"type": "object",
"additionalProperties": false,
Expand All @@ -14,7 +14,7 @@
},
"endpointKey": {
"$ref": "schema:#/definitions/stringExpression",
"title": "Endpoint Key",
"title": "Endpoint key",
"description": "Endpoint key for the QnA Maker KB.",
"default": "=settings.qna.endpointkey"
},
Expand Down Expand Up @@ -59,7 +59,7 @@
},
"strictFilters": {
"$ref": "schema:#/definitions/arrayExpression",
"title": "Strict Filters",
"title": "Strict filters",
"description": "Metadata filters to use when calling the QnA Maker KB.",
"items": {
"type": "object",
Expand Down Expand Up @@ -95,7 +95,7 @@
},
"rankerType": {
"$ref": "schema:#/definitions/stringExpression",
"title": "Ranker Type",
"title": "Ranker type",
"description": "Type of Ranker.",
"oneOf": [
{
Expand All @@ -119,7 +119,7 @@
"description": "Join operator for Strict Filters.",
"oneOf": [
{
"title": "Join Operator",
"title": "Join operator",
"description": "Value of Join Operator to be used as conjunction with Strict Filter values.",
"enum": [
"AND",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"$role": "implements(Microsoft.IRecognizer)",
"title": "QnAMaker Recognizer",
"title": "QnAMaker recognizer",
"description": "Recognizer for generating QnAMatch intents from a KB.",
"type": "object",
"properties": {
Expand All @@ -13,12 +13,12 @@
"knowledgeBaseId": {
"$ref": "schema:#/definitions/stringExpression",
"title": "KnowledgeBase Id",
"description": "KnowledgeBase Id of your QnA Maker KnowledgeBase.",
"description": "Knowledge base Id of your QnA Maker knowledge base.",
"default": "=settings.qna.knowledgebaseid"
},
"endpointKey": {
"$ref": "schema:#/definitions/stringExpression",
"title": "Endpoint Key",
"title": "Endpoint key",
"description": "Endpoint key for the QnA Maker KB.",
"default": "=settings.qna.endpointkey"
},
Expand All @@ -39,7 +39,7 @@
},
"strictFilters": {
"$ref": "schema:#/definitions/arrayExpression",
"title": "Strict Filters",
"title": "Strict filters",
"description": "Metadata filters to use when calling the QnA Maker KB.",
"items": {
"type": "object",
Expand Down Expand Up @@ -69,15 +69,15 @@
},
"isTest": {
"$ref": "schema:#/definitions/booleanExpression",
"title": "IsTest",
"title": "Use test environment",
"description": "True, if pointing to Test environment, else false.",
"examples": [
true,
"=f(x)"
]
},
"rankerType": {
"title": "Ranker Type",
"title": "Ranker type",
"description": "Type of Ranker.",
"oneOf": [
{
Expand All @@ -102,7 +102,7 @@
"description": "Join operator for Strict Filters.",
"oneOf": [
{
"title": "Join Operator",
"title": "Join operator",
"description": "Value of Join Operator to be used as onjuction with Strict Filter values.",
"enum": [
"AND",
Expand All @@ -117,7 +117,7 @@
},
"includeDialogNameInMetadata": {
"$ref": "schema:#/definitions/booleanExpression",
"title": "Include Dialog Name",
"title": "Include dialog name",
"description": "When set to false, the dialog name will not be passed to QnAMaker. (default) is true",
"default": true,
"examples": [
Expand Down Expand Up @@ -149,12 +149,12 @@
},
"context": {
"$ref": "schema:#/definitions/objectExpression",
"title": "QnARequestContext",
"title": "QnA request context",
"description": "Context to use for ranking."
},
"qnaId": {
"$ref": "schema:#/definitions/integerExpression",
"title": "QnAId",
"title": "QnA Id",
"description": "A number or expression which is the QnAId to paass to QnAMaker API."
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"$role": "implements(Microsoft.Test.ITestAction)",
"title": "Assert Reply",
"title": "Assert reply",
"description": "Asserts that a reply text is valid.",
"type": "object",
"properties": {
"text": {
"type": "string",
"title": "Reply Text",
"title": "Reply text",
"description": "Expected reply text"
},
"exact": {
"type": "boolean",
"title": "Exact Match",
"title": "Exact match",
"description": "If true then an exact match must happen, if false then the reply activity.text must contain the reply text. [Default:false]"
},
"description": {
Expand All @@ -27,7 +27,7 @@
},
"assertions": {
"type": "array",
"title": "Assertions to perform to validate Activity that is sent by the dialog",
"title": "Assertions to validate activity",
"description": "Sequence of expressions which must evaluate to true.",
"items": {
"$ref": "schema:#/definitions/condition",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"$role": "implements(Microsoft.Test.ITestAction)",
"title": "Assert Reply Activity",
"title": "Assert reply activity",
"description": "Asserts that a reply activity is valid.",
"type": "object",
"required": [
Expand All @@ -20,7 +20,7 @@
},
"assertions": {
"type": "array",
"title": "Assertions to perform to validate Activity that is sent by the dialog",
"title": "Assertions to validate Activity that is sent by the dialog",
"description": "Sequence of expressions which must evaluate to true.",
"items": {
"$ref": "schema:#/definitions/condition",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"$role": "implements(Microsoft.Test.ITestAction)",
"title": "Assert Reply OneOf",
"title": "Assert activity text matches at least one",
"description": "Asserts that a reply text is one of multiple optional responses.",
"type": "object",
"properties": {
Expand All @@ -17,7 +17,7 @@
},
"exact": {
"type": "boolean",
"title": "Exact Match",
"title": "Exact match",
"description": "If true then an exact match must happen, if false then the reply activity.text must contain the reply text. [Default:false]"
},
"description": {
Expand All @@ -32,7 +32,7 @@
},
"assertions": {
"type": "array",
"title": "Assertions to perform to validate Activity that is sent by the dialog",
"title": "Assertions to validate activity",
"description": "Sequence of expressions which must evaluate to true.",
"items": {
"$ref": "schema:#/definitions/condition",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"$role": "implements(Microsoft.Test.ITestAction)",
"title": "User Event",
"title": "User event",
"description": "Sends event to the bot from the user.",
"type": "object",
"required": [
Expand All @@ -11,7 +11,7 @@
"properties": {
"name": {
"type": "string",
"title": "Event Name",
"title": "Event name",
"description": "Event name to send to the bot."
},
"value": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"$role": "implements(Microsoft.Test.IHttpRequestMock)",
"title": "HttpRequest Sequence Mock",
"title": "HTTP request sequence mock",
"description": "Mock HttpRequest in sequence order.",
"type": "object",
"required": [
Expand Down Expand Up @@ -34,7 +34,7 @@
},
"matchType": {
"type": "string",
"title": "Body Match Type",
"title": "Body match type",
"description": "The match type for body.",
"enum": [
"Exact",
Expand Down Expand Up @@ -64,12 +64,12 @@
"description": "Mocked http response.",
"properties": {
"statusCode": {
"title": "Status Code",
"title": "Status code",
"description": "The status code. Default is OK(200).",
"oneOf": [
{
"type": "string",
"title": "String Status Code",
"title": "String status code",
"description": "Use string as status code.",
"enum": [
"Continue",
Expand Down Expand Up @@ -126,7 +126,7 @@
},
{
"type": "number",
"title": "Number Status Code",
"title": "Number status code",
"description": "Use number as status code.",
"examples": [
200
Expand All @@ -137,7 +137,7 @@
},
"reasonPhrase": {
"type": "string",
"title": "Reason Phrase",
"title": "Reason phrase",
"description": "The reason phrase.",
"examples": [
"Server is stolen."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"title": "Microsoft Test IHttpRequestMock",
"title": "HTTP request mock",
"description": "Components which derive from HttpRequestMock class",
"$role": "interface"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"title": "Microsoft Test IPropertyMock",
"title": "Property mock",
"description": "Components which derive from PropertyMock class",
"$role": "interface"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"title": "Microsoft Test ITestAction",
"title": "Test action",
"description": "Components which derive from TestAction class",
"$role": "interface"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"title": "Microsoft Test IUserTokenMock",
"title": "User token mock",
"description": "Components which derive from UserTokenMock class",
"$role": "interface"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
"$role": [],
"title": "Test Script",
"title": "Test script",
"description": "Defines a sequence of test actions to perform to validate the behavior of dialogs.",
"type": "object",
"properties": {
Expand All @@ -17,15 +17,15 @@
},
"httpRequestMocks": {
"type": "array",
"title": "Http Request Mocks",
"title": "Http request mocks",
"description": "Mock data for Microsoft.HttpRequest.",
"items": {
"$kind": "Microsoft.Test.IHttpRequestMock"
}
},
"userTokenMocks": {
"type": "array",
"title": "User Token Mocks",
"title": "User token mocks",
"description": "Mock data for Microsoft.OAuthInput.",
"items": {
"$kind": "Microsoft.Test.IUserTokenMock"
Expand All @@ -47,7 +47,7 @@
},
"enableTrace": {
"type": "boolean",
"title": "Enable Trace Activity",
"title": "Enable trace activity",
"description": "Enable trace activities in the unit test (default is false)",
"default": false
}
Expand Down
Loading

0 comments on commit 4cace07

Please sign in to comment.