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

Deekshanyab/botconfigschema #173

Merged
merged 28 commits into from
Sep 22, 2023
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e33d3d1
Added YAML metadata. (#80)
Lauragra Jul 30, 2019
a9736de
Update README.md (#81)
nokafor Jul 31, 2019
5f50a07
Preview/dev preview -> master (#85)
greybax Apr 16, 2020
a49b218
devPreview -> 1.6 for master (#86)
greybax Apr 17, 2020
e3485f4
Added isFullscreen property (#91)
cloudtx May 27, 2020
5b5dcb0
manifest version 1.7 (#94)
greybax May 28, 2020
015541c
removed supportsCalling and supportsVideo from 1.7 (#96)
greybax Jun 12, 2020
145ce88
manifest 1.8 (#104)
greybax Oct 2, 2020
29a8c86
manifest v1.9 (#114)
greybax Jan 27, 2021
6018cad
add MeetingExtensionDefinition (#117)
junyezhu Mar 4, 2021
024c127
manifest schema 1.10 (#120)
charlesji-msft-teams May 10, 2021
b35281e
Charlesji/update readme (#126)
charlesji-msft-teams Jul 7, 2021
32b05af
Update schema for app authorization section (#124)
junyezhu Aug 3, 2021
d1882b2
Revert "Update schema for app authorization section (#124)" (#133)
charlesji-msft-teams Sep 7, 2021
eb6a547
manifest1.11 (#136)
charlesji-msft-teams Nov 22, 2021
5830305
manifest 1.11 (#137)
charlesji-msft-teams Nov 22, 2021
c2db0de
Charlesji/manifest1.12 (#138)
charlesji-msft-teams Jan 25, 2022
789c543
Charlesji/updated manifest1.12 (#141)
charlesji-msft-teams Jan 29, 2022
5883951
Update MicrosoftTeams.schema.json (#146)
erayc-msft May 21, 2022
55144d8
Charlesji/manifest1.14 (#147)
charlesji-msft-teams Jul 14, 2022
95bc130
remove filters (#149)
charlesji-msft-teams Aug 17, 2022
7c4241d
added manifest 1.15 (#160)
charlesji-msft-teams Nov 2, 2022
db9620d
add full name as required and camel case group chat (#164)
charlesji-msft-teams Jan 31, 2023
4f0207e
added manifest 1.16 (#167)
charlesji-msft-teams Jul 13, 2023
c5fbeb3
add bot configuration schema changes
Sep 8, 2023
f6e4da5
merge with latest dev preview
Sep 8, 2023
8d5d721
address comments
Sep 11, 2023
d42861c
add period for descriptions
Sep 11, 2023
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
175 changes: 50 additions & 125 deletions MicrosoftTeams.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -347,110 +347,31 @@
"configuration": {
"type": "object",
"additionalProperties": false,
"properties": {
"team": {
"type": "object",
"additionalProperties": false,
"properties": {
"parameters": {
"type": "array",
"maxItems": 5,
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Name of the parameter.",
"maxLength": 64
},
"inputType": {
"type": "string",
"enum": [
"text",
"textarea",
"number",
"date",
"time",
"toggle",
"choiceset"
],
"description": "Type of the parameter",
"default": "text"
},
"title": {
"type": "string",
"description": "Title of the parameter.",
"maxLength": 32
},
"description": {
"type": "string",
"description": "Description of the parameter.",
"maxLength": 128
},
"value": {
"type": "string",
"description": "Initial value for the parameter",
"maxLength": 512
},
"choices": {
"type": "array",
"maxItems": 10,
"description": "The choice options for the parameter",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Title of the choice",
"maxLength": 128
},
"value": {
"type": "string",
"description": "Value of the choice",
"maxLength": 512
}
},
"additionalProperties": false,
"required": [
"title",
"value"
]
}
}
},
"required": [
"name",
"title"
]
}
},
"taskInfo": {
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Task module title",
"maxLength": 64
},
"width": {
"$ref": "#/definitions/taskInfoDimension",
"description": "Task module width - either a number in pixels or default layout such as 'large', 'medium', or 'small'"
},
"height": {
"$ref": "#/definitions/taskInfoDimension",
"description": "Task module height - either a number in pixels or default layout such as 'large', 'medium', or 'small'"
},
"url": {
"$ref": "#/definitions/httpsUrl",
"description": "Task module URL"
}
}
}
}
"team": {
"type": "object",
"additionalProperties": false,
"fetchTask": {
"type": "boolean",
"description": "A boolean value that indicates if it should fetch bot config task module dynamically.",
"default": false
},
"taskInfo": {
"$ref": "#/definitions/taskInfo",
"description": "Task module to be launched when fetch task set to false."
}
},
"groupChat": {
"type": "object",
"additionalProperties": false,
"fetchTask": {
"type": "boolean",
"description": "A boolean value that indicates if it should fetch bot config task module dynamically.",
"default": false
},
"taskInfo": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same definition of "taskInfo" was repeated 3 times, could we make it a common component that can be referenced.

"$ref": "#/definitions/taskInfo",
"description": "Task module to be launched when fetch task set to false."
}
}
},
"needsChannelSelector": {
Expand Down Expand Up @@ -749,27 +670,8 @@
}
},
"taskInfo": {
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Initial dialog title",
"maxLength": 64
},
"width": {
"$ref": "#/definitions/taskInfoDimension",
"description": "Dialog width - either a number in pixels or default layout such as 'large', 'medium', or 'small'"
},
"height": {
"$ref": "#/definitions/taskInfoDimension",
"description": "Dialog height - either a number in pixels or default layout such as 'large', 'medium', or 'small'"
},
"url": {
"$ref": "#/definitions/httpsUrl",
"description": "Initial webview URL"
}
}
"$ref": "#/definitions/taskInfo",
"description": "Task module to be launched when fetch task set to false."
}
},
"required": [
Expand Down Expand Up @@ -1234,6 +1136,29 @@
"type": "string",
"pattern": "^[A-Za-z0-9]{1,8}(-[A-Za-z0-9]{1,8}){0,2}$"
},
"taskInfo": {
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"description": "Initial dialog title.",
"maxLength": 64
},
"width": {
"$ref": "#/definitions/taskInfoDimension",
"description": "Dialog width - either a number in pixels or default layout such as 'large', 'medium', or 'small'."
},
"height": {
"$ref": "#/definitions/taskInfoDimension",
"description": "Dialog height - either a number in pixels or default layout such as 'large', 'medium', or 'small'."
},
"url": {
"$ref": "#/definitions/httpsUrl",
"description": "Initial webview URL."
}
}
},
"taskInfoDimension": {
"type": "string",
"pattern": "^((([0-9]*\\.)?[0-9]+)|[lL][aA][rR][gG][eE]|[mM][eE][dD][iI][uU][mM]|[sS][mM][aA][lL][lL])$",
Expand Down Expand Up @@ -2151,4 +2076,4 @@
}
}
}
}
}