Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed swagger errors. Remove envelope Id from the description #38

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 60 additions & 11 deletions certified-connectors/DocuSignDemo/apiDefinition.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -974,8 +974,10 @@
"parameters": [
{
"name": "recordType",
"x-ms-summary": "Record type",
"description": "Select record type",
"in": "query",
"required": true,
"required": true,
"enum": [
"account",
"opportunity",
Expand All @@ -985,12 +987,15 @@
},
{
"name": "recordId",
"x-ms-summary": "Record Id",
"description": "Record Id",
"in": "query",
"required": true,
"type": "string"
},
{
"name": "startDateTime",
"x-ms-summary": "Start date",
"description": "Enter start date-time in the format: 2017-05-02T01:44Z",
"in": "query",
"type": "string",
Expand All @@ -999,27 +1004,32 @@
},
{
"name": "endDateTime",
"x-ms-summary": "End date",
"description": "Enter end date-time in the format: 2017-05-02T01:44Z",
"in": "query",
"type": "string",
"format": "date-time"
},
{
"name": "top",
"x-ms-summary": "Top",
"description": "Top envelopes to be returned",
"in": "query",
"type": "integer",
"format": "int32"
},
{
"name": "skip",
"x-ms-summary": "Skip",
"description": "Envelopes to be skipped",
"in": "query",
"type": "integer",
"format": "int32"
},
{
"name": "crmType",
"x-ms-summary": "CRM type",
"description": "CRM type",
"in": "query",
"enum": [
"Dynamics365"
Expand All @@ -1028,9 +1038,11 @@
},
{
"name": "crmOrgUrl",
"x-ms-summary": "CRM org URL",
"description": "CRM org URL",
"in": "query",
"type": "string"
}
}
],
"responses": {
"200": {
Expand Down Expand Up @@ -1083,7 +1095,9 @@
{
"name": "recordType",
"in": "query",
"required": true,
"x-ms-summary": "Record type",
"description": "Select record type",
"required": true,
"enum": [
"account",
"opportunity",
Expand All @@ -1093,12 +1107,15 @@
},
{
"name": "recordId",
"x-ms-summary": "Record Id",
"description": "Record Id",
"in": "query",
"required": true,
"type": "string"
},
{
"name": "startDateTime",
"x-ms-summary": "Start date",
"description": "Enter start date-time in the format: 2017-05-02T01:44Z",
"in": "query",
"type": "string",
Expand All @@ -1107,20 +1124,24 @@
},
{
"name": "top",
"x-ms-summary": "Top",
"description": "Top envelopes to be returned",
"in": "query",
"type": "integer",
"format": "int32"
},
{
"name": "skip",
"x-ms-summary": "Skip",
"description": "Envelopes to be skipped",
"in": "query",
"type": "integer",
"format": "int32"
},
{
"name": "crmType",
"x-ms-summary": "CRM type",
"description": "CRM type",
"in": "query",
"enum": [
"Dynamics365"
Expand All @@ -1129,9 +1150,11 @@
},
{
"name": "crmOrgUrl",
"x-ms-summary": "CRM org URL",
"description": "CRM org URL",
"in": "query",
"type": "string"
}
}
],
"responses": {
"200": {
Expand Down Expand Up @@ -4796,31 +4819,42 @@
"properties": {
"title": {
"minLength": 1,
"x-ms-summary": "Title",
"description": "Title of the activity",
"type": "string"
},
"description": {
"minLength": 1,
"x-ms-summary": "Description",
"description": "Description of the activity",
"type": "string"
},
"dateTime": {
"type": "string",
"x-ms-summary": "DateTime",
"description": "Last status update of the activity",
"format": "date-time"
},
"url": {
"type": "string"
"type": "string",
"x-ms-summary": "URL",
"description": "URL of the envelope"
},
"additionalProperties": {
"type": "object",
"properties": {
"additionalProperties": {
"type": "string"
"type": "string",
"x-ms-summary": "Additional Properties",
"description": "Additional properties of the activity"
}
},
"x-ms-summary": "Additional Properties"
"x-ms-summary": "Additional Properties",
"description": "Additional properties of the activity"
}
},
"additionalProperties": false
},
},
"DocumentRecord": {
"required": [
"recordId",
Expand All @@ -4833,35 +4867,50 @@
"properties": {
"recordId": {
"minLength": 1,
"x-ms-summary": "Record Id",
"description": "Record Id",
"type": "string"
},
"recordTypeDisplayName": {
"minLength": 1,
"x-ms-summary": "Record type display name",
"description": "Record type display name",
"type": "string"
},
"recordTypePluralDisplayName": {
"minLength": 1,
"x-ms-summary": "Record type display name in plural",
"description": "Record type display name in plural",
"type": "string"
},
"recordType": {
"minLength": 1,
"x-ms-summary": "Record type",
"description": "Record type",
"type": "string"
},
"recordTitle": {
"minLength": 1,
"x-ms-summary": "Record title",
"description": "Record title",
"type": "string"
},
"url": {
"type": "string"
"type": "string",
"x-ms-summary": "Url of the envelope",
"description": "Url of the envelope",
},
"additionalProperties": {
"type": "object",
"properties": {
"additionalProperties": {
"type": "string"
"type": "string",
"x-ms-summary": "Additional Properties",
"description": "Additional Properties"
}
},
"x-ms-summary": "Additional Properties"
"x-ms-summary": "Additional Properties",
"description": "Additional Properties"
}
},
"additionalProperties": false
Expand Down
2 changes: 0 additions & 2 deletions certified-connectors/DocuSignDemo/script.csx
Original file line number Diff line number Diff line change
Expand Up @@ -2296,7 +2296,6 @@ public class Script : ScriptBase
["Recipients"] = recipientNames,
["Owner"] = envelope["sender"]["userName"],
["Status"] = textInfo.ToTitleCase(envelope["status"].ToString()),
["EnvelopeId"] = envelope["envelopeId"],
["Date"] = envelope["statusChangedDateTime"]
};
activities.Add(new JObject()
Expand Down Expand Up @@ -2367,7 +2366,6 @@ public class Script : ScriptBase
{
["Recipients"] = recipientNames,
["Owner"] = envelope["sender"]["userName"],
["EnvelopeId"] = envelope["envelopeId"],
["Date"] = envelope["statusChangedDateTime"]
};

Expand Down